MCPcopy Index your code
hub / github.com/unrolled/render / Write

Method Write

engine.go:74–77  ·  view source on GitHub ↗

Write outputs the header content.

(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

72
73// Write outputs the header content.
74func (h Head) Write(w http.ResponseWriter) {
75 w.Header().Set(ContentType, h.ContentType)
76 w.WriteHeader(h.Status)
77}
78
79// Render a data response.
80func (d Data) Render(w io.Writer, v interface{}) error {

Callers 8

RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
renderStreamingJSONMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
EncodeMethod · 0.80

Calls

no outgoing calls

Tested by 1

EncodeMethod · 0.64