package
1.2.2
Repository: https://github.com/solidnerd/clair.git
Documentation: pkg.go.dev

# Functions

ParseHTTPBody reads a JSON-encoded body from a http.Request and unmarshals it into the provided object.
WriteHTTP writes a JSON-encoded object to a http.ResponseWriter, as well as a HTTP status code.
WriteHTTPError writes an error, wrapped in the Message field of a JSON-encoded object to a http.ResponseWriter, as well as a HTTP status code.

# Constants

MaxBodySize is the maximum number of bytes that ParseHTTPBody reads from an http.Request.Body.