Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StatusCtxKey is a context key to record a future HTTP response status code. StatusCtxKey = &contextKey{"Status"} // ContentTypeCtxKey is a context for recording a by-pass for context-type ContentTypeCtxKey = &contextKey{"ContentType"} // RenderCtxKey is a context for getting the render to use RenderCtxKey = &contextKey{name: "Renderer"} )
Functions ¶
func NoContent ¶
func NoContent(w writeHeaderer)
NoContent returns a HTTP 204 "No Content" response.
func SetContentTypeHeader ¶
func SetContentTypeHeader(w headerer, value string)
func SetNoSniffHeader ¶
func SetNoSniffHeader(w headerer)
func Status ¶
Status sets a HTTP response status code hint into request context at any point during the request life-cycle. Before the Responder sends its response header it will check the StatusCtxKey
func WriteStatus ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.