ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
GlobalHttpState.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 2016 Fabian Schmid <fs@studer-raimann.ch> Extended GPL, see docs/LICENSE */
3 
4 namespace ILIAS\HTTP;
5 
11 
25 interface GlobalHttpState
26 {
27 
33  public function request() : RequestInterface;
34 
35 
41  public function response() : ResponseInterface;
42 
43 
51  public function cookieJar() : CookieJar;
52 
53 
63  public function saveRequest(ServerRequestInterface $request) : void;
64 
65 
73  public function saveResponse(ResponseInterface $response) : void;
74 
75 
82  public function sendResponse() : void;
83 
84 
85  public function close() : void;
86 }
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.
response()
Returns the current psr-7 response.
$response