Documentation
¶
Overview ¶
Package httpjson reads and writes size-limited JSON. Callers handle authentication, media types, timeouts, closing bodies, and API errors. This package does not contain generated API or domain types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTooLarge = errors.New("JSON body exceeds limit") ErrTrailingContent = errors.New("JSON contains trailing content") )
Functions ¶
func Decode ¶
Decode reads one JSON value and rejects unknown struct fields or trailing data. Configure number handling and limit the input before calling it. The standard handling of null and duplicate object keys is unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.