Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBodyTooLarge = errors.New("body too large")
View Source
var ErrInvalidJSON = errors.New("invalid json")
Functions ¶
func DecodeJSONBody ¶
DecodeJSONBody decodes a JSON body, returning ErrBodyTooLarge on MaxBytesError. DecodeJSONBody 解码 JSON body;需要上游设置限流才会返回 ErrBodyTooLarge。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.