HandlePrecognitiveRequests
class HandlePrecognitiveRequests (View source)
Properties
| protected Container | $container | The container instance. |
Methods
void
appendVaryHeader(Request $request, Response $response)
Append the appropriate "Vary" header to the given response.
void
restoreDispatchers(array|null $callableBinding, array|null $controllerBinding)
Restore the original route dispatcher bindings.
Details
__construct(Container $container)
Create a new middleware instance.
protected void
prepareForPrecognition(Request $request)
Prepare to handle a precognitive request.
protected Response
appendVaryHeader(Request $request, Response $response)
Append the appropriate "Vary" header to the given response.
protected void
restoreDispatchers(array|null $callableBinding, array|null $controllerBinding)
Restore the original route dispatcher bindings.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.