public function get(
            int $timeout = 30,
            $version = HttpVersion::HTTP_1_1
    ): HttpResponse {
        $socket = $this->httpUri->openSocket($timeout);
        $this->processHeader($socket, Http::GET, $version);
        return HttpResponse::create($socket);
    }
public function get(
            int $timeout = 30,
            $version = HttpVersion::HTTP_1_1
    ): HttpResponse {
        $socket = $this->httpUri->openSocket($timeout);
        $this->processHeader($socket, Http::GET, $version);
        return HttpResponse::create($socket);
    }
public function get ( int $ timeout = 30 , $ version = HttpVersion :: HTTP_1_1 ) : HttpResponse { $ socket = $ this -> httpUri -> openSocket ( $ timeout ) ; $ this -> processHeader ( $ socket , Http :: GET , $ version ) ; return HttpResponse :: create ( $ socket ) ; }
initializes a get request

@param   int                                     $timeout  optional  connection timeout, defaults to 30 seconds
@param   string|\stubbles\peer\http\HttpVersion  $version  optional  http version, defaults to HTTP/1.1
@return  \stubbles\peer\http\HttpResponse
initializes a get request