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

Function WithWorkerName

requestoptions.go:158–166  ·  view source on GitHub ↗

WithWorkerName sets the worker that should handle the request

(name string)

Source from the content-addressed store, hash-verified

156
157// WithWorkerName sets the worker that should handle the request
158func WithWorkerName(name string) RequestOption {
159 return func(o *frankenPHPContext) error {
160 if name != "" {
161 o.worker = workersByName[name]
162 }
163
164 return nil
165 }
166}

Callers 2

ServeHTTPMethod · 0.92
SendRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected