Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-chi/render
/ functions
Functions
27 in github.com/go-chi/render
⨍
Functions
27
◇
Types & classes
5
↓ 4 callers
Function
renderer
Executed top-down
render.go:57
↓ 2 callers
Method
Bind
(r *http.Request)
render.go:15
↓ 2 callers
Function
GetAcceptedContentType
(r *http.Request)
content_type.go:67
↓ 2 callers
Function
GetContentType
(s string)
content_type.go:27
↓ 2 callers
Function
JSON
JSON marshals 'v' to JSON, automatically escaping HTML and setting the Content-Type as application/json.
responder.go:93
↓ 2 callers
Function
isNil
(f reflect.Value)
render.go:47
↓ 1 callers
Function
DecodeForm
DecodeForm decodes a given reader into an interface using the form decoder.
decoder.go:54
↓ 1 callers
Function
DecodeJSON
DecodeJSON decodes a given reader into an interface using the json decoder.
decoder.go:42
↓ 1 callers
Function
DecodeXML
DecodeXML decodes a given reader into an interface using the xml decoder.
decoder.go:48
↓ 1 callers
Function
GetRequestContentType
GetRequestContentType is a helper function that returns ContentType based on context or request headers.
content_type.go:60
↓ 1 callers
Method
Render
(w http.ResponseWriter, r *http.Request)
render.go:10
↓ 1 callers
Function
XML
XML marshals 'v' to XML, setting the Content-Type as application/xml. It will automatically prepend a generic XML header (see encoding/xml.Header) if
responder.go:112
↓ 1 callers
Function
binder
Executed bottom-up
render.go:94
↓ 1 callers
Function
channelEventStream
(w http.ResponseWriter, r *http.Request, v interface{})
responder.go:142
↓ 1 callers
Function
channelIntoSlice
channelIntoSlice buffers channel data into a slice.
responder.go:202
Function
Bind
Bind decodes a request body and executes the Binder method of the payload structure.
render.go:20
Function
Data
Data writes raw bytes to the response, setting the Content-Type as application/octet-stream.
responder.go:74
Function
DefaultDecoder
DefaultDecoder detects the correct decoder for use on an HTTP request and marshals into a given interface.
decoder.go:24
Function
DefaultResponder
Respond handles streaming JSON and XML responses, automatically setting the Content-Type based on request headers. It will default to a JSON response.
responder.go:37
Function
HTML
HTML writes a string to the response, setting the Content-Type as text/html.
responder.go:83
Function
NoContent
NoContent returns a HTTP 204 "No Content" response.
responder.go:138
Function
PlainText
PlainText writes a string to the response, setting the Content-Type as text/plain.
responder.go:64
Function
Render
Render renders a single payload and respond to the client request.
render.go:28
Function
RenderList
RenderList renders a slice of payloads and responds to the client request.
render.go:37
Function
SetContentType
SetContentType is a middleware that forces response Content-Type.
content_type.go:48
Function
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
responder.go:31
Method
String
()
render.go:141