Home / Type/ Context Type — fiber Architecture

Context Type — fiber Architecture

Architecture documentation for the Context type/interface in request.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  497f79a3_391b_122d_e0b1_00ec9317b5df["Context"]
  57f8b776_0c63_5c88_3581_d70765402a0c["request.go"]
  497f79a3_391b_122d_e0b1_00ec9317b5df -->|defined in| 57f8b776_0c63_5c88_3581_d70765402a0c
  style 497f79a3_391b_122d_e0b1_00ec9317b5df fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

client/request.go lines 46–73

type Request struct {
	ctx context.Context //nolint:containedctx // Context is needed to be stored in the request.

	body    any
	header  Header
	params  QueryParam
	cookies Cookie
	path    PathParam

	client *Client

	formData FormData

	RawRequest *fasthttp.Request
	url        string
	method     string
	userAgent  string
	boundary   string
	referer    string
	files      []*File

	timeout      time.Duration
	maxRedirects int

	bodyType bodyType

	disablePathNormalizing bool
}

Defined In

Frequently Asked Questions

What is the Context type?
Context is a type/interface in the fiber codebase, defined in client/request.go.
Where is Context defined?
Context is defined in client/request.go at line 46.

Analyze Your Own Codebase

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

Try Supermodel Free