http415

package module
v0.0.0-...-8864d2b Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 4 Imported by: 0

README

go-http415

Package http415 provides tools for creating HTTP 415 responses, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-http415

GoDoc

Import

To import package http415 use import code like the following:

import "github.com/reiver/go-http415"

Installation

To install package http415 do the following:

GOPROXY=direct go get github.com/reiver/go-http415

Author

Package http415 was written by Charles Iliya Krempeaux

Documentation

Index

Constants

View Source
const DefaultStatusText string = "Unsupported Media Type"
View Source
const (
	ErrNilHTTPResponseWriter = erorr.Error("http415: nil http-response-writer")
)

Variables

This section is empty.

Functions

func Serve

func Serve(responseWriter http.ResponseWriter, mediaTypes ...string) error

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.

Jump to

Keyboard shortcuts

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