render

package
v0.0.0-...-798156f Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 4 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(ctx context.Context, 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 frontier.
This package contains the Server Sent Events implementation used by frontier.

Jump to

Keyboard shortcuts

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