response

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 7 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodecForRequest

func CodecForRequest(r *http.Request, name string) (encoding.Codec, bool)

CodecForRequest get encoding.Codec via http.Request

func CodecForResponse added in v0.0.18

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

func DecodeError added in v0.0.20

func DecodeError(ctx context.Context, res *http.Response) error

func Decoder added in v0.0.18

func Decoder(ctx context.Context, res *http.Response, out interface{}) error

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.

Jump to

Keyboard shortcuts

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