Documentation ¶
Overview ¶
*
- @Author : nopsky
- @Email : cnnopsky@gmail.com
- @Date : 2021/12/2 17:12
*
- @Author : nopsky
- @Email : cnnopsky@gmail.com
- @Date : 2021/8/20 17:59
Index ¶
- func CodecForRequest(r *http.Request, name string) (encoding.Codec, bool)
- func CodecForResponse(r *http.Response) encoding.Codec
- func DecodeError(ctx context.Context, res *http.Response) error
- func Decoder(ctx context.Context, res *http.Response, out interface{}) error
- func Encoder(w http.ResponseWriter, r *http.Request, v interface{}) error
- func ErrorEncoder(w http.ResponseWriter, r *http.Request, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodecForRequest ¶
CodecForRequest get encoding.Codec via http.Request
func Encoder ¶
func Encoder(w http.ResponseWriter, r *http.Request, v interface{}) error
DefaultResponseEncoder encodes the object to the HTTP response.
func ErrorEncoder ¶
func ErrorEncoder(w http.ResponseWriter, r *http.Request, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.