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

Function WithWorkerEnv

options.go:180–186  ·  view source on GitHub ↗

WithWorkerEnv sets environment variables for the worker

(env map[string]string)

Source from the content-addressed store, hash-verified

178
179// WithWorkerEnv sets environment variables for the worker
180func WithWorkerEnv(env map[string]string) WorkerOption {
181 return func(w *workerOpt) error {
182 w.env = PrepareEnv(env)
183
184 return nil
185 }
186}
187
188// WithWorkerRequestOptions sets options for the main dummy request created for the worker
189func WithWorkerRequestOptions(options ...RequestOption) WorkerOption {

Callers 5

runTestFunction · 0.92
ExampleServeHTTP_workersFunction · 0.92
StartMethod · 0.92

Calls 1

PrepareEnvFunction · 0.85

Tested by 4

runTestFunction · 0.74
ExampleServeHTTP_workersFunction · 0.74