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

Function WithRequestEnv

requestoptions.go:128–130  ·  view source on GitHub ↗

WithRequestEnv set CGI-like environment variables that will be available in $_SERVER. Values set with WithEnv always have priority over automatically populated values.

(env map[string]string)

Source from the content-addressed store, hash-verified

126// WithRequestEnv set CGI-like environment variables that will be available in $_SERVER.
127// Values set with WithEnv always have priority over automatically populated values.
128func WithRequestEnv(env map[string]string) RequestOption {
129 return WithRequestPreparedEnv(PrepareEnv(env))
130}
131
132func WithRequestPreparedEnv(env PreparedEnv) RequestOption {
133 return func(o *frankenPHPContext) error {

Callers 1

testPathInfoFunction · 0.92

Calls 2

WithRequestPreparedEnvFunction · 0.85
PrepareEnvFunction · 0.85

Tested by 1

testPathInfoFunction · 0.74