ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Interface GlobalHttpState. More...
Public Member Functions | |
request () | |
Returns the current psr-7 server request. More... | |
response () | |
Returns the current psr-7 response. More... | |
cookieJar () | |
Returns a cookie jar which has all cookies known by the ILIAS response. More... | |
saveRequest (ServerRequestInterface $request) | |
Saves the given request for further use. More... | |
saveResponse (ResponseInterface $response) | |
Saves the given response for further use. More... | |
sendResponse () | |
Render the current response hold by ILIAS. More... | |
Interface GlobalHttpState.
The GlobalHttpState expose functions to access the cookies, request and response. In addition there are functions to save the request and response back into the service. The save functionality is only provided due to the current architectural state of ILIAS.
Definition at line 24 of file GlobalHttpState.php.
ILIAS\HTTP\GlobalHttpState::cookieJar | ( | ) |
Returns a cookie jar which has all cookies known by the ILIAS response.
Make sure to call the saveResponse method when the cookies are rendered into the response object.
Implemented in ILIAS\DI\HTTPServices.
ILIAS\HTTP\GlobalHttpState::request | ( | ) |
Returns the current psr-7 server request.
Implemented in ILIAS\DI\HTTPServices.
Referenced by ilWebAccessChecker\__construct().
ILIAS\HTTP\GlobalHttpState::response | ( | ) |
ILIAS\HTTP\GlobalHttpState::saveRequest | ( | ServerRequestInterface | $request | ) |
Saves the given request for further use.
The request should only be saved if absolutely necessary. There is a possibility that the request can't be saved back in the near future.
ServerRequestInterface | $request | The server request which should be saved. |
Implemented in ILIAS\DI\HTTPServices.
ILIAS\HTTP\GlobalHttpState::saveResponse | ( | ResponseInterface | $response | ) |
Saves the given response for further use.
ResponseInterface | $response | The response which should be saved. |
Implemented in ILIAS\DI\HTTPServices.
ILIAS\HTTP\GlobalHttpState::sendResponse | ( | ) |
Render the current response hold by ILIAS.
ResponseSendingException | Each subsequent call will throw this exception. |
Implemented in ILIAS\DI\HTTPServices.