Versions in this module Expand all Collapse all v1 v1.13.1 Feb 8, 2017 Changes in this version + const APIVersionKey + const UAStringKey + func BoolValue(r *http.Request, k string) bool + func BoolValueOrDefault(r *http.Request, k string, d bool) bool + func CheckForJSON(r *http.Request) error + func CloseStreams(streams ...interface{}) + func GetHTTPErrorStatusCode(err error) int + func HijackConnection(w http.ResponseWriter) (io.ReadCloser, io.Writer, error) + func Int64ValueOrDefault(r *http.Request, field string, def int64) (int64, error) + func Int64ValueOrZero(r *http.Request, k string) int64 + func MakeErrorHandler(err error) http.HandlerFunc + func ParseForm(r *http.Request) error + func VersionFromContext(ctx context.Context) (ver string) + func WriteJSON(w http.ResponseWriter, code int, v interface{}) error + type APIFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error + type ArchiveOptions struct + Name string + Path string + func ArchiveFormValues(r *http.Request, vars map[string]string) (ArchiveOptions, error) + type ContainerDecoder interface + DecodeConfig func(src io.Reader) (*container.Config, *container.HostConfig, *network.NetworkingConfig, error) + DecodeHostConfig func(src io.Reader) (*container.HostConfig, error)