src/Net/Browser.php
public function get($url, $method = "GET")
  {
    return $this->request([
      CURLOPT_HTTPGET => true,
      CURLOPT_CUSTOMREQUEST => $method ?: "GET",
      CURLOPT_URL => "$url",
    ]);
  }
public function get($url, $method = "GET")
  {
    return $this->request([
      CURLOPT_HTTPGET => true,
      CURLOPT_CUSTOMREQUEST => $method ?: "GET",
      CURLOPT_URL => "$url",
    ]);
  }
HTTP GET-like method caller

Performs a body-less HTTP request on a given `$url`.

Returns response body, if applicable.

The request may not contain a body part.

Upon successful(*) request, the basic status block is populated.

(*)The definition of success depends on cURL handle settings.

@param string $url An URL to access.
@param ?string $method The request method, defaults to GET.
@return string Response body.