MCPcopy Create free account

hub / github.com/go-chi/render / functions

Functions27 in github.com/go-chi/render

↓ 4 callersFunctionrenderer
Executed top-down
render.go:57
↓ 2 callersMethodBind
(r *http.Request)
render.go:15
↓ 2 callersFunctionGetAcceptedContentType
(r *http.Request)
content_type.go:67
↓ 2 callersFunctionGetContentType
(s string)
content_type.go:27
↓ 2 callersFunctionJSON
JSON marshals 'v' to JSON, automatically escaping HTML and setting the Content-Type as application/json.
responder.go:93
↓ 2 callersFunctionisNil
(f reflect.Value)
render.go:47
↓ 1 callersFunctionDecodeForm
DecodeForm decodes a given reader into an interface using the form decoder.
decoder.go:54
↓ 1 callersFunctionDecodeJSON
DecodeJSON decodes a given reader into an interface using the json decoder.
decoder.go:42
↓ 1 callersFunctionDecodeXML
DecodeXML decodes a given reader into an interface using the xml decoder.
decoder.go:48
↓ 1 callersFunctionGetRequestContentType
GetRequestContentType is a helper function that returns ContentType based on context or request headers.
content_type.go:60
↓ 1 callersMethodRender
(w http.ResponseWriter, r *http.Request)
render.go:10
↓ 1 callersFunctionXML
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 callersFunctionbinder
Executed bottom-up
render.go:94
↓ 1 callersFunctionchannelEventStream
(w http.ResponseWriter, r *http.Request, v interface{})
responder.go:142
↓ 1 callersFunctionchannelIntoSlice
channelIntoSlice buffers channel data into a slice.
responder.go:202
FunctionBind
Bind decodes a request body and executes the Binder method of the payload structure.
render.go:20
FunctionData
Data writes raw bytes to the response, setting the Content-Type as application/octet-stream.
responder.go:74
FunctionDefaultDecoder
DefaultDecoder detects the correct decoder for use on an HTTP request and marshals into a given interface.
decoder.go:24
FunctionDefaultResponder
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
FunctionHTML
HTML writes a string to the response, setting the Content-Type as text/html.
responder.go:83
FunctionNoContent
NoContent returns a HTTP 204 "No Content" response.
responder.go:138
FunctionPlainText
PlainText writes a string to the response, setting the Content-Type as text/plain.
responder.go:64
FunctionRender
Render renders a single payload and respond to the client request.
render.go:28
FunctionRenderList
RenderList renders a slice of payloads and responds to the client request.
render.go:37
FunctionSetContentType
SetContentType is a middleware that forces response Content-Type.
content_type.go:48
FunctionStatus
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
MethodString
()
render.go:141