# Functions

BinaryAdaptor returns a midl.Adapter instance for responding with application/binary on success and application/json on error.
ContentLengthFilter constructs a middleware filter that enforces the incoming request has a Content-Length header and that the value is below the given threshold.
JobIDValidator is a middleware filter that rejects requests that have invalid jobId url parameters.
JSONContentFilter creates a middleware layer that enforces both the existence of the Content-Type header and that the header equals "application/json".
MetricAgg is an HTTP handler wrapper that records metrics for the wrapped handler.
New404Handler constructs a generic handler for requests that have no matching registered route.
New405Handler constructs a generic handler for requests that have no matching route for the request method (e.g.
RegisterGenericHandlers appends generic error generators for unroutable requests to the global router.
RequestCtxProvider wraps an HTTP handler and provides additional context to the request and to the server for the request.