MCPcopy
hub / github.com/gin-gonic/gin / Reader

Struct Reader

render/reader.go:14–19  ·  view source on GitHub ↗

Reader contains the IO reader and its length, and custom ContentType and other headers.

Source from the content-addressed store, hash-verified

12
13// Reader contains the IO reader and its length, and custom ContentType and other headers.
14type Reader struct {
15 ContentType string
16 ContentLength int64
17 Reader io.Reader
18 Headers map[string]string
19}
20
21// Render (Reader) writes data with custom ContentType and headers.
22func (r Reader) Render(w http.ResponseWriter) (err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected