Documentation
¶
Index ¶
- Constants
- func Serve(responseWriter http.ResponseWriter, mediaTypes ...string) error
- func ServeBytes(responseWriter http.ResponseWriter, bytes []byte, mediaTypes ...string) error
- func ServeString(responseWriter http.ResponseWriter, value string, mediaTypes ...string) error
- func UnsupportedMediaType(responseWriter http.ResponseWriter, request *http.Request)
Constants ¶
View Source
const DefaultStatusText string = "Unsupported Media Type"
View Source
const (
ErrNilHTTPResponseWriter = erorr.Error("http415: nil http-response-writer")
)
View Source
const (
StatusCode = http.StatusUnsupportedMediaType
)
Variables ¶
This section is empty.
Functions ¶
func ServeBytes ¶
func ServeBytes(responseWriter http.ResponseWriter, bytes []byte, mediaTypes ...string) error
func ServeString ¶
func ServeString(responseWriter http.ResponseWriter, value string, mediaTypes ...string) error
func UnsupportedMediaType ¶
func UnsupportedMediaType(responseWriter http.ResponseWriter, request *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.