ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
10 
24 interface GlobalHttpState
25 {
26 
32  public function request();
33 
34 
40  public function response();
41 
42 
50  public function cookieJar();
51 
52 
62  public function saveRequest(ServerRequestInterface $request);
63 
64 
72  public function saveResponse(ResponseInterface $response);
73 
74 
81  public function sendResponse();
82 }
Interface GlobalHttpState.
request()
Returns the current psr-7 server request.
Representation of an incoming, server-side HTTP 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.
Representation of an outgoing, server-side response.
response()
Returns the current psr-7 response.
$response