http

package
v0.0.0-...-b804f52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2023 License: MulanPSL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodecForResponse

func CodecForResponse(r *http.Response) xencoding.Codec

CodecForResponse get encoding.Codec via http.Response

func DefaultRequestEncoder

func DefaultRequestEncoder(tgt *url.URL) func(context.Context, *http.Request, interface{}) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL