Home / Function/ LocalContextFromHTTPRequest() — fiber Function Reference

LocalContextFromHTTPRequest() — fiber Function Reference

Architecture documentation for the LocalContextFromHTTPRequest() function in adaptor.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  7830013e_4a82_cad7_8c3c_e338c03f3a5f["LocalContextFromHTTPRequest()"]
  69780622_2588_e0fa_ab5a_13dcfd3559e7["adaptor.go"]
  7830013e_4a82_cad7_8c3c_e338c03f3a5f -->|defined in| 69780622_2588_e0fa_ab5a_13dcfd3559e7
  fa637e33_4848_cefd_22d1_22ad58c2307c["HTTPHandlerWithContext()"]
  fa637e33_4848_cefd_22d1_22ad58c2307c -->|calls| 7830013e_4a82_cad7_8c3c_e338c03f3a5f
  style 7830013e_4a82_cad7_8c3c_e338c03f3a5f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/adaptor/adaptor.go lines 78–81

func LocalContextFromHTTPRequest(r *http.Request) (context.Context, bool) {
	ctx, err := r.Context().Value(localContextKey).(context.Context)
	return ctx, err
}

Domain

Subdomains

Frequently Asked Questions

What does LocalContextFromHTTPRequest() do?
LocalContextFromHTTPRequest() is a function in the fiber codebase, defined in middleware/adaptor/adaptor.go.
Where is LocalContextFromHTTPRequest() defined?
LocalContextFromHTTPRequest() is defined in middleware/adaptor/adaptor.go at line 78.
What calls LocalContextFromHTTPRequest()?
LocalContextFromHTTPRequest() is called by 1 function(s): HTTPHandlerWithContext.

Analyze Your Own Codebase

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

Try Supermodel Free