HandlePrecognitiveRequests
class HandlePrecognitiveRequests
Methods
void
Response
appendVaryHeader(Request $request, Response $response)
Append the appropriate "Vary" header to the given response.
Details
at line 42
protected void
prepareForPrecognition(Request $request)
Prepare to handle a precognitive request.
Sets two request attributes:
precognitive: user-facing flag checked byisPrecognitive()precognitive_dispatch: internal flag checked by routing dispatchers to delegate to Precognition variants
Using request attributes instead of container rebinding avoids race conditions in Swoole's concurrent worker model.
at line 51
protected Response
appendVaryHeader(Request $request, Response $response)
Append the appropriate "Vary" header to the given response.