Spec-Zone.ru › Laravel 10

HandlePrecognitiveRequests

класс HandlePrecognitiveRequests (Просмотреть исходный код)

Свойства

protected Container$container

Экземпляр контейнера.

Методы

void__construct(Container $container)

Создать новый экземпляр middleware.

Responsehandle(Request $request, Closure $next)

Обработать входящий запрос.

voidprepareForPrecognition(Request $request)

Подготовиться к обработке запроса с предвидением.

ResponseappendVaryHeader(Request $request, Response $response)

Добавить соответствующий заголовок "Vary" к заданному ответу.

Детали

void __construct(Container $container)

Создать новый экземпляр middleware.

Параметры

Container$container

Возвращаемое значение

void

Response handle(Request $request, Closure $next)

Обработать входящий запрос.

Параметры

Request$request
Closure$next

Возвращаемое значение

Response

protected void prepareForPrecognition(Request $request)

Подготовиться к обработке запроса с предвидением.

Параметры

Request$request

Возвращаемое значение

void

protected Response appendVaryHeader(Request $request, Response $response)

Добавить соответствующий заголовок "Vary" к заданному ответу.

Параметры

Request$request
Response$response

Возвращаемое значение

Response

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API