public HttpClientResponse (HttpURLConnection connection) throws IOException { this.connection = connection; try { this.status = new HttpStatus(connection.getResponseCode()); } catch (IOException e) { this.status = new HttpStatus(-1); } }
public HttpClientResponse (HttpURLConnection connection) throws IOException { this.connection = connection; try { this.status = new HttpStatus(connection.getResponseCode()); } catch (IOException e) { this.status = new HttpStatus(-1); } }
public HttpClientResponse (Response response) { this.response = response; this.status = new HttpStatus(response.getStatusCode()); }
public HttpClientResponse (Response response) { this.response = response; this.status = new HttpStatus(response.getStatusCode()); }
public HttpClientResponse (HttpURLConnection connection) throws IOException { this.connection = connection; try { this.status = new HttpStatus(connection.getResponseCode()); } catch (IOException e) { this.status = new HttpStatus(-1); } }
public HttpClientResponse (Response response) { this.response = response; this.status = new HttpStatus(response.getStatusCode()); }