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

Function PrepareEnv

requestoptions.go:117–124  ·  view source on GitHub ↗
(env map[string]string)

Source from the content-addressed store, hash-verified

115type PreparedEnv = map[string]string
116
117func PrepareEnv(env map[string]string) PreparedEnv {
118 preparedEnv := make(PreparedEnv, len(env))
119 for k, v := range env {
120 preparedEnv[k+"\x00"] = v
121 }
122
123 return preparedEnv
124}
125
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.

Callers 5

ProvisionMethod · 0.92
WithWorkersFunction · 0.85
WithWorkerEnvFunction · 0.85
WithRequestEnvFunction · 0.85

Calls

no outgoing calls

Tested by 1