Spec-Zone.ru › Laravel 9

HandlePrecognitiveRequests

class HandlePrecognitiveRequests (View source)

Свойства

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/9.x/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.html

Spec-Zone.ru

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