media

package
v0.0.3-alpha24 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 4 Imported by: 0

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

Functions

func GetResponseMediaType

func GetResponseMediaType(r *http.Response, defaultMediaType string) (string, error)

func IsAcceptableMediaType

func IsAcceptableMediaType(mediaType string) bool

func IsJSONSynonym

func IsJSONSynonym(mediaType string) bool

func IsXMLSynonym

func IsXMLSynonym(mediaType string) bool

func NormaliseMediaType

func NormaliseMediaType(mediaType string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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