Constructor.
-
JRegistry
$options: Client options object. If the registry contains any headers.* elements, these will be added to the request headers.
-
JHttpTransport
$transport: The HTTP transport object.
Redefined in descendants as:
Method to send the DELETE command to the server.
JHttpResponse
delete
(
string $url, [
array $headers =
null], [
integer $timeout =
null])
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.
-
integer
$timeout: Read timeout in seconds.
Method to send the GET command to the server.
JHttpResponse
get
(
string $url, [
array $headers =
null], [
integer $timeout =
null])
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.
-
integer
$timeout: Read timeout in seconds.
Redefined in descendants as:
Get an option from the HTTP client.
mixed
getOption
(string $key)
-
string
$key: The name of the option to get.
Method to send the HEAD command to the server.
JHttpResponse
head
(
string $url, [
array $headers =
null], [
integer $timeout =
null])
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.
-
integer
$timeout: Read timeout in seconds.
Method to send the OPTIONS command to the server.
JHttpResponse
options
(
string $url, [
array $headers =
null], [
integer $timeout =
null])
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.
-
integer
$timeout: Read timeout in seconds.
Method to send the PATCH command to the server.
JHttpResponse
patch
(
string $url,
mixed $data, [
array $headers =
null], [
integer $timeout =
null])
-
string
$url: Path to the resource.
-
mixed
$data: Either an associative array or a string to be sent with the request.
-
array
$headers: An array of name-value pairs to include in the header of the request.
-
integer
$timeout: Read timeout in seconds.
Method to send the POST command to the server.
JHttpResponse
post
(
string $url,
mixed $data, [
array $headers =
null], [
integer $timeout =
null])
-
string
$url: Path to the resource.
-
mixed
$data: Either an associative array or a string to be sent with the request.
-
array
$headers: An array of name-value pairs to include in the header of the request
-
integer
$timeout: Read timeout in seconds.
Redefined in descendants as:
Method to send the PUT command to the server.
JHttpResponse
put
(
string $url,
mixed $data, [
array $headers =
null], [
integer $timeout =
null])
-
string
$url: Path to the resource.
-
mixed
$data: Either an associative array or a string to be sent with the request.
-
array
$headers: An array of name-value pairs to include in the header of the request.
-
integer
$timeout: Read timeout in seconds.
Set an option for the HTTP client.
JHttp
setOption
(
string $key,
mixed $value)
-
string
$key: The name of the option to set.
-
mixed
$value: The option value to set.
Method to send the TRACE command to the server.
JHttpResponse
trace
(
string $url, [
array $headers =
null], [
integer $timeout =
null])
-
string
$url: Path to the resource.
-
array
$headers: An array of name-value pairs to include in the header of the request.
-
integer
$timeout: Read timeout in seconds.