package
0.20.0
Repository: https://github.com/artifacthub/hub.git
Documentation: pkg.go.dev

# Functions

BuildCacheControlHeader builds an http cache header using the max age duration provided.
RenderErrorJSON is a helper to write the error provided to the given http response writer as json setting the appropriate content type.
RenderErrorWithCodeJSON is a helper to write the error provided to the given http response writer as json setting the appropriate content type.
RenderJSON is a helper to write the json data provided to the given http response writer, setting the appropriate content type, cache and status code.

# Constants

DefaultAPICacheMaxAge represents the default cache duration used by some API endpoints.