Documentation
¶
Overview ¶
Package jsonbody owns HTTP-adapter JSON body bounds and decode policy: bounded body read, shape preflight against the request-envelope profile (which also enforces exactly one JSON document), then typed decode.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmpty = errors.New("jsonbody: empty request body")
ErrEmpty reports an empty body when Policy.AllowEmpty is false.
View Source
var ErrTooLarge = errors.New("jsonbody: request body too large")
ErrTooLarge reports a request body that exceeds Policy.MaxBytes.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.