Home / Function/ DataFromReader() — gin Function Reference

DataFromReader() — gin Function Reference

Architecture documentation for the DataFromReader() function in context.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  a4b28f5f_0d45_f516_1430_e2f45109b5a2["DataFromReader()"]
  3840d682_85a8_dc5c_2aa7_af7268c222ee["Render()"]
  a4b28f5f_0d45_f516_1430_e2f45109b5a2 -->|calls| 3840d682_85a8_dc5c_2aa7_af7268c222ee
  style a4b28f5f_0d45_f516_1430_e2f45109b5a2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

context.go lines 1269–1276

func (c *Context) DataFromReader(code int, contentLength int64, contentType string, reader io.Reader, extraHeaders map[string]string) {
	c.Render(code, render.Reader{
		Headers:       extraHeaders,
		ContentType:   contentType,
		ContentLength: contentLength,
		Reader:        reader,
	})
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does DataFromReader() do?
DataFromReader() is a function in the gin codebase.
What does DataFromReader() call?
DataFromReader() calls 1 function(s): Render.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free