Versions in this module Expand all Collapse all v0 v0.2.0 Dec 25, 2015 v0.1.0 Dec 14, 2015 Changes in this version + const DefaultMime + const HeaderAccept + const HeaderContentType + const JSONMime + const MultipartFormMime + const YAMLMime + var Statuses = map[int]string + func CanHaveBody(method string) bool + func ContentType(headers http.Header) (string, string, *errors.ParseError) + func JSONRequest(method, urlStr string, body io.Reader) (*http.Request, error) + func ReadCollectionValue(values Gettable, name, collectionFormat string) []string + func ReadSingleValue(values Gettable, name string) string + type Authenticator interface + Authenticate func(interface{}) (bool, interface{}, error) + type AuthenticatorFunc func(interface{}) (bool, interface{}, error) + func (f AuthenticatorFunc) Authenticate(params interface{}) (bool, interface{}, error) + type Consumer interface + Consume func(io.Reader, interface{}) error + func JSONConsumer() Consumer + func YAMLConsumer() Consumer + type ConsumerFunc func(io.Reader, interface{}) error + func (fn ConsumerFunc) Consume(reader io.Reader, data interface{}) error + type File struct + Data multipart.File + Header *multipart.FileHeader + type Gettable interface + GetOK func(string) ([]string, bool, bool) + type OperationHandler interface + Handle func(interface{}) (interface{}, error) + type OperationHandlerFunc func(interface{}) (interface{}, error) + func (s OperationHandlerFunc) Handle(data interface{}) (interface{}, error) + type Producer interface + Produce func(io.Writer, interface{}) error + func JSONProducer() Producer + func YAMLProducer() Producer + type ProducerFunc func(io.Writer, interface{}) error + func (f ProducerFunc) Produce(writer io.Writer, data interface{}) error + type Validatable interface + Validate func(strfmt.Registry) error + type Values map[string][]string + func (v Values) GetOK(key string) (value []string, hasKey bool, hasValue bool)