ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class to represent an HTTP message. More...
Public Member Functions | |
__construct ($url, $method='GET', $params=null, $header=null) | |
Class constructor. More... | |
send () | |
Send the request to the target URL. More... | |
Data Fields | |
$ok = false | |
True if message was sent successfully. More... | |
$request = null | |
Request body. More... | |
$requestHeaders = '' | |
Request headers. More... | |
$response = null | |
Response body. More... | |
$responseHeaders = '' | |
Response headers. More... | |
$status = 0 | |
Status of response (0 if undetermined). More... | |
$error = '' | |
Error message. More... | |
Private Attributes | |
$url = null | |
Request URL. More... | |
$method = null | |
Request method. More... | |
Class to represent an HTTP message.
Definition at line 14 of file HTTPMessage.php.
IMSGlobal\LTI\HTTPMessage::__construct | ( | $url, | |
$method = 'GET' , |
|||
$params = null , |
|||
$header = null |
|||
) |
Class constructor.
string | $url | URL to send request to |
string | $method | Request method to use (optional, default is GET) |
mixed | $params | Associative array of parameter values to be passed or message body (optional, default is none) |
string | $header | Values to include in the request header (optional, default is none) |
Definition at line 88 of file HTTPMessage.php.
References $header, IMSGlobal\LTI\HTTPMessage\$method, $params, and IMSGlobal\LTI\HTTPMessage\$url.
IMSGlobal\LTI\HTTPMessage::send | ( | ) |
Send the request to the target URL.
Definition at line 109 of file HTTPMessage.php.
References IMSGlobal\LTI\HTTPMessage\$ok, IMSGlobal\LTI\HTTPMessage\$requestHeaders, array, ilLogLevel\DEBUG, and ilLoggerFactory\getLogger().
error IMSGlobal\LTI\HTTPMessage::$error = '' |
Error message.
Definition at line 64 of file HTTPMessage.php.
|
private |
Request method.
Definition at line 78 of file HTTPMessage.php.
Referenced by IMSGlobal\LTI\HTTPMessage\__construct().
boolean IMSGlobal\LTI\HTTPMessage::$ok = false |
True if message was sent successfully.
Definition at line 22 of file HTTPMessage.php.
Referenced by IMSGlobal\LTI\HTTPMessage\send().
request IMSGlobal\LTI\HTTPMessage::$request = null |
Request body.
Definition at line 29 of file HTTPMessage.php.
request_headers IMSGlobal\LTI\HTTPMessage::$requestHeaders = '' |
Request headers.
Definition at line 36 of file HTTPMessage.php.
Referenced by IMSGlobal\LTI\HTTPMessage\send().
response IMSGlobal\LTI\HTTPMessage::$response = null |
Response body.
Definition at line 43 of file HTTPMessage.php.
response_headers IMSGlobal\LTI\HTTPMessage::$responseHeaders = '' |
Response headers.
Definition at line 50 of file HTTPMessage.php.
status IMSGlobal\LTI\HTTPMessage::$status = 0 |
Status of response (0 if undetermined).
Definition at line 57 of file HTTPMessage.php.
|
private |
Request URL.
Definition at line 71 of file HTTPMessage.php.
Referenced by IMSGlobal\LTI\HTTPMessage\__construct().