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

Method closeContext

context.go:125–132  ·  view source on GitHub ↗

closeContext sends the response to the client

()

Source from the content-addressed store, hash-verified

123
124// closeContext sends the response to the client
125func (fc *frankenPHPContext) closeContext() {
126 if fc.isDone {
127 return
128 }
129
130 close(fc.done)
131 fc.isDone = true
132}
133
134// validate checks if the request should be outright rejected
135func (fc *frankenPHPContext) validate() error {

Callers 5

rejectMethod · 0.95
tearDownWorkerScriptFunction · 0.80
afterRequestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected