class HandlePrecognitiveRequests (View source)
| protected Container | $container | The container instance. |
| void | __construct(Container $container)
Create a new middleware instance. | |
| Response | handle(Request $request, Closure $next)
Handle an incoming request. | |
| void | prepareForPrecognition(Request $request)
Prepare to handle a precognitive request. | |
| Response | appendVaryHeader(Request $request, Response $response)
Append the appropriate "Vary" header to the given response. |
Create a new middleware instance.
Prepare to handle a precognitive request.
Append the appropriate "Vary" header to the given response.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.html