Code examples for HttpResponse

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
66:	int status = response.getStatusLine().getStatusCode(); 
-
71:	String content = consume(response.getEntity()); 
Full Snippet Info
9
CodeRank
200:	StatusLine status = response.getStatusLine(); 
-
203:	HttpEntity entity = response.getEntity(); 
-
208:	String responseFileName = autoRename ? OtherUtils.getFileNameFromHttpResponse(response) : null; 
-
213:	String responseCharset = OtherUtils.getCharsetFromHttpResponse(response); 
-
225:	HttpRequestBase request = downloadRedirectHandler.getDirectRequest(response); 
Full Snippet Info
8
CodeRank
36:	assertThat(resp.getStatusLine().getStatusCode()).isEqualTo(200); 
37:	assertThat(Strings.fromStream(resp.getEntity().getContent())).isEqualTo("foo"); 
Full Snippet Info
8
CodeRank
87:	HttpEntity entity = response.getEntity(); 
Full Snippet Info
8
CodeRank
131:	StatusLine status = response.getStatusLine(); 
-
137:	HttpEntity entity = response.getEntity(); 
Full Snippet Info
8
CodeRank
173:	showHeaders(response.getAllHeaders()), response.containsHeader(headerName)); 
Full Snippet Info
7
CodeRank
60:	StatusLine status     = response.getStatusLine(); 
-
65:	return parseResponse(response.getEntity()); 
Full Snippet Info
8
CodeRank
189:	int statusCode = hr.getStatusLine().getStatusCode(); 
Full Snippet Info
7
CodeRank
308:	HttpEntity entity = response.getEntity(); 
Full Snippet Info
7
CodeRank
78:	StatusLine statusLine = this.httpResponse.getStatusLine(); 
-
97:	unauthorizedClientException.setErrorDescription(this.httpResponse.getFirstHeader("WWW-Authenticate").getValue()); 
-
111:	HttpEntity entity = httpResponse.getEntity(); 
-
116:	if (httpResponse.getFirstHeader("Content-Type").getValue().equalsIgnoreCase("application/json")) { 
-
134:	if (httpResponse.getFirstHeader("Content-Type").getValue().equalsIgnoreCase("application/x-www-form-urlencoded")) { 
Full Snippet Info
7
CodeRank
378:	HttpEntity entity = res.getEntity(); 
-
382:	res.setEntity(new GzipDecompressingEntity(res.getEntity())); 
-
384:	return new Execution(req, res); 
Full Snippet Info
7
CodeRank
131:	StatusLine status = response.getStatusLine(); 
-
137:	HttpEntity entity = response.getEntity(); 
Full Snippet Info
8
CodeRank
19:	if (response == null || response.getStatusLine().getStatusCode() != 200) { 
-
24:	String responseString = NetworkUtils.toString(response.getEntity(), HTTP.UTF_8); 
Full Snippet Info
7
CodeRank
163:	if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) { 
-
166:	HttpEntity entity = response.getEntity(); 
Full Snippet Info
7
CodeRank
76:	if (httpResponse.getStatusLine().getStatusCode() == 200) { 
-
79:	Document dom = builder.parse(httpResponse.getEntity().getContent()); 
-
90:	throw new LoginException("Couldn't log-in to the WAZ Service: The login request returned " + httpResponse.getStatusLine().getReasonPhrase()); 
Full Snippet Info
7
CodeRank
46:	this.statusLine = response.getStatusLine(); 
-
49:	final HttpEntity wrappedHttpEntity = response.getEntity(); 
Full Snippet Info
7
CodeRank
81:	final int status = response.getStatusLine().getStatusCode(); 
-
115:	xr.parse(new InputSource(new BufferedInputStream(response.getEntity().getContent()))); 
Full Snippet Info
7
CodeRank
207:	StatusLine status = response.getStatusLine(); 
-
211:	HttpEntity temp = response.getEntity(); 
Full Snippet Info
7
CodeRank
16:	StatusLine statusLine = response.getStatusLine(); 
17:	HttpEntity entity = response.getEntity(); 
Full Snippet Info
7
CodeRank
133:	StatusLine status = response.getStatusLine(); 
-
139:	HttpEntity entity = response.getEntity(); 
Full Snippet Info
7
CodeRank