LTI Integration Library 4.10.3
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
HTTPMessage Class Reference

Class to represent an HTTP message request. More...

Inheritance diagram for HTTPMessage:
HttpMessage

Public Member Functions

 __construct ($url, $method='GET', $params=null, $header=null)
 Class constructor.
 
- Public Member Functions inherited from HttpMessage
 __construct ($url, $method='GET', $params=null, $header=null)
 Class constructor.
 
 getUrl ()
 Get the target URL for the request.
 
 getMethod ()
 Get the HTTP method for the request.
 
 send ()
 Send the request to the target URL.
 
 hasRelativeLink ($rel)
 Check whether a relative link of the specified type exists.
 
 getRelativeLink ($rel)
 Get the URL from the relative link with the specified type.
 
 getRelativeLinks ()
 Get the relative links.
 

Additional Inherited Members

- Static Public Member Functions inherited from HttpMessage
static setHttpClient ($httpClient=null)
 Set the HTTP client to use for sending the message.
 
static getHttpClient ()
 Get the HTTP client to use for sending the message.
 
- Data Fields inherited from HttpMessage
 $ok = false
 True if message was processed successfully.
 
 $request = null
 Request body.
 
 $requestHeaders = ''
 Request headers.
 
 $response = null
 Response body.
 
 $responseHeaders = ''
 Response headers.
 
 $relativeLinks = array()
 Relative links in response headers.
 
 $status = 0
 Status of response (0 if undetermined).
 
 $error = ''
 Error message.
 

Detailed Description

Class to represent an HTTP message request.

Deprecated:
Use Http::HttpMessage instead
See also
Http::HttpMessage
Author
Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3

Definition at line 17 of file HTTPMessage.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $url,
  $method = 'GET',
  $params = null,
  $header = null 
)

Class constructor.

Parameters
string$urlURL to send request to
string$methodRequest method to use (optional, default is GET)
mixed$paramsAssociative array of parameter values to be passed or message body (optional, default is none)
string$headerValues to include in the request header (optional, default is none)

Reimplemented from HttpMessage.

Definition at line 28 of file HTTPMessage.php.

References Util\logDebug().


The documentation for this class was generated from the following file: