/**
* @throws HTTPException\InternalServerErrorException
*/
- protected function request(string $method, string $url, array $opts = []): IHTTPResult
+ public function request(string $method, string $url, array $opts = []): IHTTPResult
{
$this->profiler->startRecording('network');
$this->logger->debug('Request start.', ['url' => $url, 'method' => $method]);
*/
public function get(string $url, array $opts = []);
+ /**
+ * Sends a HTTP request to a given url
+ *
+ * @param string $method A HTTP request ()
+ * @param string $url Url to send to
+ * @param array $opts parameters
+ *
+ * @return IHTTPResult
+ */
+ public function request(string $method, string $url, array $opts = []);
+
/**
* Send POST request to an URL
*