ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
GlobalHttpState.php
Go to the documentation of this file.
1 <?php
2 
18 namespace ILIAS\HTTP;
19 
28 
42 interface GlobalHttpState
43 {
44  public function durations() : DurationFactory;
45 
46  public function wrapper() : WrapperFactory;
47 
53  public function request(): RequestInterface;
54 
55 
59  public function response(): ResponseInterface;
60 
61 
67  public function cookieJar(): CookieJar;
68 
69 
77  public function saveRequest(ServerRequestInterface $request): void;
78 
79 
85  public function saveResponse(ResponseInterface $response): void;
86 
87 
93  public function sendResponse(): void;
94 
95 
96  public function close(): void;
97 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface GlobalHttpState.
request()
Returns the current psr-7 server request.
saveRequest(ServerRequestInterface $request)
Saves the given request for further use.
cookieJar()
Returns a cookie jar which has all cookies known by the ILIAS response.
sendResponse()
Render the current response hold by ILIAS.
saveResponse(ResponseInterface $response)
Saves the given response for further use.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
response()
Returns the current psr-7 response.
$response