ILIAS
release_8 Revision v8.19
|
Interface GlobalHttpState. More...
Public Member Functions | |
durations () | |
wrapper () | |
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... | |
close () | |
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 42 of file GlobalHttpState.php.
ILIAS\HTTP\GlobalHttpState::close | ( | ) |
Implemented in ILIAS\HTTP\RawHTTPServices, and ILIAS\HTTP\Services.
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\HTTP\Services, and ILIAS\HTTP\RawHTTPServices.
ILIAS\HTTP\GlobalHttpState::durations | ( | ) |
Implemented in ILIAS\HTTP\RawHTTPServices, and ILIAS\HTTP\Services.
ILIAS\HTTP\GlobalHttpState::request | ( | ) |
Returns the current psr-7 server request.
Implemented in ILIAS\HTTP\RawHTTPServices, and ILIAS\HTTP\Services.
ILIAS\HTTP\GlobalHttpState::response | ( | ) |
Returns the current psr-7 response.
Implemented in ILIAS\HTTP\RawHTTPServices, and ILIAS\HTTP\Services.
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\HTTP\RawHTTPServices, and ILIAS\HTTP\Services.
ILIAS\HTTP\GlobalHttpState::saveResponse | ( | ResponseInterface | $response | ) |
Saves the given response for further use.
ResponseInterface | $response | The response which should be saved. |
Implemented in ILIAS\HTTP\RawHTTPServices, and ILIAS\HTTP\Services.
ILIAS\HTTP\GlobalHttpState::sendResponse | ( | ) |
Render the current response hold by ILIAS.
ResponseSendingException | Each subsequent call will throw this exception. |
Implemented in ILIAS\HTTP\RawHTTPServices, and ILIAS\HTTP\Services.
ILIAS\HTTP\GlobalHttpState::wrapper | ( | ) |
Implemented in ILIAS\HTTP\RawHTTPServices, and ILIAS\HTTP\Services.
Referenced by ilObjGroupGUI\_goto(), and ilObjCourseGUI\_goto().