protected _request ( string $method, string $path, string $data, string $options ) : object | ||
$method | string | The HTTP method of the request, i.e. `'GET'`, `'HEAD'`, `'OPTIONS'`, etc. Can be passed in upper- or lower-case. |
$path | string | The |
$data | string | |
$options | string | |
return | object | Returns an instance of `http\Request`, configured with an HTTP method, query string or POST/PUT/PATCH data, and URL. |