Documentation
¶
Index ¶
- func CodecForResponse(r *http.Response) xencoding.Codec
- func DefaultRequestEncoder(tgt *url.URL) func(context.Context, *http.Request, interface{}) error
- func DefaultResponseDecoder(v interface{}) func(context.Context, *http.Response) (interface{}, error)
- func NewHttpClinet(method string, tgt *url.URL, replyType interface{}, ...) endpoint.Endpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodecForResponse ¶
CodecForResponse get encoding.Codec via http.Response
func DefaultRequestEncoder ¶
func DefaultResponseDecoder ¶
func DefaultResponseDecoder(v interface{}) func(context.Context, *http.Response) (interface{}, error)
DefaultResponseDecoder is an HTTP response decoder.
func NewHttpClinet ¶
func NewHttpClinet(method string, tgt *url.URL, replyType interface{}, options ...httptransport.ClientOption) endpoint.Endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.