Home / Function/ GetRawData() — gin Function Reference

GetRawData() — gin Function Reference

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

Entity Profile

Relationship Graph

Source Code

context.go lines 1093–1098

func (c *Context) GetRawData() ([]byte, error) {
	if c.Request.Body == nil {
		return nil, errors.New("cannot read nil body")
	}
	return io.ReadAll(c.Request.Body)
}

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free