MCPcopy Create free account
hub / github.com/php/frankenphp / inheritEnv

Method inheritEnv

caddy/workerconfig.go:164–174  ·  view source on GitHub ↗
(env map[string]string)

Source from the content-addressed store, hash-verified

162}
163
164func (wc *workerConfig) inheritEnv(env map[string]string) {
165 if wc.Env == nil {
166 wc.Env = make(map[string]string, len(env))
167 }
168 for k, v := range env {
169 // do not overwrite existing environment variables
170 if _, exists := wc.Env[k]; !exists {
171 wc.Env[k] = v
172 }
173 }
174}
175
176func (wc *workerConfig) matchesPath(r *http.Request, documentRoot string) bool {
177 // try to match against a pattern if one is assigned

Callers 1

ProvisionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected