$method
$method : String
REST Request
This class is used to encapsulate request related data such as method, url, headers etc. Whilst this class is used internally, it is also made available to request interceptors for modification before the request is made.
__construct(String $method, String $url, Mixed $payload, Array $headers = array())
Request object constructor. Request properties should be set here (rather than just setting the object properties directly).
String | $method | The HTTP method you wish to use for the request |
String | $url | The URL path to make the request to (relative to the API base path) |
Mixed | $payload | The payload of the request |
Array | $headers | Request headers |