ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
4namespace ILIAS\HTTP;
5
8use Psr\Http\Message\RequestInterface;
9use Psr\Http\Message\ResponseInterface;
10use Psr\Http\Message\ServerRequestInterface;
11
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}
An exception for terminatinating execution or to throw for unit testing.
Interface GlobalHttpState.
saveRequest(ServerRequestInterface $request)
Saves the given request for further use.
saveResponse(ResponseInterface $response)
Saves the given response for further use.
sendResponse()
Render the current response hold by ILIAS.
request()
Returns the current psr-7 server request.
cookieJar()
Returns a cookie jar which has all cookies known by the ILIAS response.
response()
Returns the current psr-7 response.
$response