fixed v4 chages
Some checks failed
lint / lint (pull_request) Failing after 1m21s
test / test (pull_request) Successful in 3m3s

This commit is contained in:
2025-02-20 19:11:27 +03:00
parent b224e80b80
commit c031230888
6 changed files with 116 additions and 21 deletions

View File

@@ -3,7 +3,6 @@ package http
import (
"go.unistack.org/micro/v4/client"
"go.unistack.org/micro/v4/codec"
"go.unistack.org/micro/v4/options"
)
type httpRequest struct {
@@ -14,7 +13,7 @@ type httpRequest struct {
opts client.RequestOptions
}
func newHTTPRequest(service, method string, request interface{}, contentType string, opts ...options.Option) client.Request {
func newHTTPRequest(service, method string, request interface{}, contentType string, opts ...client.RequestOption) client.Request {
options := client.NewRequestOptions(opts...)
if len(options.ContentType) == 0 {
options.ContentType = contentType