Documentation ¶
Index ¶
Constants ¶
View Source
const ( MediaTypeHTML string = "text/html" MediaTypeJson string = "application/json" MediaTypeScimJson string = "application/scim+json" MediaTypeOctetStream string = "application/octet-stream" MediaTypeTextPlain string = "text/plain" MediaTypeXML string = "application/xml" MediaTypeTextXML string = "text/xml" )
Variables ¶
View Source
var ( DefaultMediaFuzzyMatcher fuzzymatch.FuzzyMatcher[string] = fuzzymatch.NewRegexpStringMetcher( []fuzzymatch.StringFuzzyPair{ fuzzymatch.NewFuzzyPair(synonymJSONRegexp, MediaTypeJson), fuzzymatch.NewFuzzyPair(synonymXMLRegexp, MediaTypeXML), }) )
Functions ¶
func GetResponseMediaType ¶
func IsAcceptableMediaType ¶
func IsJSONSynonym ¶
func IsXMLSynonym ¶
func NormaliseMediaType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.