negotiator

package
v0.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMatchingResponse = errors.New("no matching response found")

Functions

This section is empty.

Types

type ContentTypeNegotiator

type ContentTypeNegotiator interface {
	NegotiateContentType(request *http.Request, response *openapi3.Response) string
}

func NewContentTypeNegotiator

func NewContentTypeNegotiator() ContentTypeNegotiator

type StatusCodeNegotiator

type StatusCodeNegotiator interface {
	NegotiateStatusCode(request *http.Request, responses openapi3.Responses) (key string, code int, err error)
}

func NewStatusCodeNegotiator

func NewStatusCodeNegotiator() StatusCodeNegotiator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL