package
1.2.0
Repository: https://github.com/open-policy-agent/opa.git
Documentation: pkg.go.dev

# Functions

Bytes writes a response with the specified status code and bytes.
Error writes a response with specified status and error response.
ErrorAuto writes a response with status and code set automatically based on the type of err.
ErrorString writes a response with specified status, code, and message set to the err's string representation.
HTTPStatus is used to set a specific status code Adapted from https://stackoverflow.com/questions/27711154/what-response-code-to-return-on-a-non-supported-http-method-on-rest.
JSON writes a response with the specified status code and object.
JSONOK is a helper for status "200 OK" responses.