HandlePrecognitiveRequests
class HandlePrecognitiveRequests (View source)
Свойства
| protected Container | $container | Экземпляр контейнера. |
Методы
| void | __construct(Container $container) Создать новый экземпляр middleware. | |
| Response | handle(Request $request, Closure $next) Обработать входящий запрос. | |
| void | prepareForPrecognition(Request $request) Подготовиться к обработке предсказательного запроса. | |
| Response | appendVaryHeader(Request $request, Response $response) Добавить соответствующий заголовок "Vary" к заданному ответу. |
Подробности
void __construct(Container $container)
Создать новый экземпляр middleware.
protected void prepareForPrecognition(Request $request)
Подготовиться к обработке предсказательного запроса.
protected Response appendVaryHeader(Request $request, Response $response)
Добавить соответствующий заголовок "Vary" к заданному ответу.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.html