model/modx/rest/modrestsockclient.class.php
- package
- modx
- subpackage
- rest
- Classes
- modRestSockClient
Description
\modRestSockClient
- Extends from
- \modRestClient
- package
- modx
- subpackage
- rest
- Methods
- request
Description
The basic REST client for handling REST requests
Methods
request
request(
string $host, string $path, string $method
=
GET, array $params
=
array, array $options
=
array
)
:
\modRestResponse
Extends modRestClient::request to provide socket-specific request handling
Arguments
- $host
- string
The host of the REST server. - $path
- string
The path to request to on the REST server. - $method
- string
The HTTP method to use for the request. May be GET, PUT or POST. - $params
- array
An array of parameters to send with the request. - $options
- array
An array of options to pass to the request.
Output
- \modRestResponse
- The response object.
Details
- visibility
- public
- final
- false
- static
- false
- todo
- Ensure this strips whitespace that prevents this class from working