render

package
v0.0.0-...-b1bd2f5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//MimeEventStream is the mime type for "text/event-stream"
	MimeEventStream = "text/event-stream"
	//MimeHal is the mime type for "application/hal+json"
	MimeHal = "application/hal+json"
	//MimeJSON is the mime type for "application/json"
	MimeJSON = "application/json"
	//MimeProblem is the mime type for application/problem+json"
	MimeProblem = "application/problem+json"
	//MimeRaw is the mime type for "application/octet-stream"
	MimeRaw = "application/octet-stream"
)

Variables

This section is empty.

Functions

func Negotiate

func Negotiate(r *http.Request) string

Negotiate inspects the Accept header of the provided request and determines what the most appropriate response type should be. Defaults to HAL.

Types

This section is empty.

Directories

Path Synopsis
This package contains the Server Sent Events implementation used by horizon.
This package contains the Server Sent Events implementation used by horizon.

Jump to

Keyboard shortcuts

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