MCPcopy Index your code
hub / github.com/php/frankenphp / fromContext

Function fromContext

context.go:51–54  ·  view source on GitHub ↗

fromContext extracts the frankenPHPContext from a context.

(ctx context.Context)

Source from the content-addressed store, hash-verified

49
50// fromContext extracts the frankenPHPContext from a context.
51func fromContext(ctx context.Context) (fctx *frankenPHPContext, ok bool) {
52 fctx, ok = ctx.Value(contextKey).(*frankenPHPContext)
53 return
54}
55
56func newFrankenPHPContext() *frankenPHPContext {
57 return &frankenPHPContext{

Callers 2

ServeHTTPFunction · 0.85
newDummyContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected