# Functions
ArchiveFormValues parses form values and turns them into ArchiveOptions.
BoolValue transforms a form value in different formats into a boolean type.
BoolValueOrDefault returns the default bool passed if the query param is missing, otherwise it's just a proxy to boolValue above.
CheckForJSON makes sure that the request's Content-Type is application/json.
CloseStreams ensures that a list for http streams are properly closed.
HijackConnection interrupts the http response writer to get the underlying connection and operate with it.
Int64ValueOrDefault parses a form value into an int64 type.
Int64ValueOrZero parses a form value into an int64 type.
ParseForm ensures the request form is parsed even with invalid content types.
ParseMultipartForm ensure the request form is parsed, even with invalid content types.
VersionFromContext returns an API version from the context using APIVersionKey.
WriteError decodes a specific docker error and sends it in the response.
WriteJSON writes the value v to the http response stream as json with standard json encoding.
# Constants
APIVersionKey is the client's requested API version.
# Structs
ArchiveOptions stores archive information for different operations.
# Type aliases
APIFunc is an adapter to allow the use of ordinary functions as Docker API endpoints.