render

package
v0.0.0-...-c63ad05 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0, 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"
	//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