Synched with the latest HttpCore API snapshot
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@404814 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d4fd138412
commit
537bdb10dc
|
@ -31,9 +31,9 @@ package org.apache.httpclient.impl;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import org.apache.http.ConnectionReuseStrategy;
|
||||||
import org.apache.http.HttpConnection;
|
import org.apache.http.HttpConnection;
|
||||||
import org.apache.http.HttpResponse;
|
import org.apache.http.HttpResponse;
|
||||||
import org.apache.http.impl.ConnectionReuseStrategy;
|
|
||||||
import org.apache.http.impl.DefaultConnectionReuseStrategy;
|
import org.apache.http.impl.DefaultConnectionReuseStrategy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -32,7 +32,7 @@ import java.io.ByteArrayInputStream;
|
||||||
|
|
||||||
import org.apache.http.Header;
|
import org.apache.http.Header;
|
||||||
import org.apache.http.HttpConnection;
|
import org.apache.http.HttpConnection;
|
||||||
import org.apache.http.HttpMutableResponse;
|
import org.apache.http.HttpResponse;
|
||||||
import org.apache.http.HttpVersion;
|
import org.apache.http.HttpVersion;
|
||||||
import org.apache.http.StatusLine;
|
import org.apache.http.StatusLine;
|
||||||
import org.apache.http.entity.BasicHttpEntity;
|
import org.apache.http.entity.BasicHttpEntity;
|
||||||
|
@ -87,7 +87,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase {
|
||||||
entity.setContent(new ByteArrayInputStream(data));
|
entity.setContent(new ByteArrayInputStream(data));
|
||||||
|
|
||||||
StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_0, 200, "OK");
|
StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_0, 200, "OK");
|
||||||
HttpMutableResponse response = new BasicHttpResponse(statusline);
|
HttpResponse response = new BasicHttpResponse(statusline);
|
||||||
response.setHeader(new Header("Connection", "Close"));
|
response.setHeader(new Header("Connection", "Close"));
|
||||||
response.setParams(new DefaultHttpParams(null));
|
response.setParams(new DefaultHttpParams(null));
|
||||||
response.setEntity(entity);
|
response.setEntity(entity);
|
||||||
|
@ -110,7 +110,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase {
|
||||||
entity.setContent(new ByteArrayInputStream(data));
|
entity.setContent(new ByteArrayInputStream(data));
|
||||||
|
|
||||||
StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_1, 200, "OK");
|
StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_1, 200, "OK");
|
||||||
HttpMutableResponse response = new BasicHttpResponse(statusline);
|
HttpResponse response = new BasicHttpResponse(statusline);
|
||||||
response.setHeader(new Header("Connection", "Keep-alive"));
|
response.setHeader(new Header("Connection", "Keep-alive"));
|
||||||
response.setParams(new DefaultHttpParams(null));
|
response.setParams(new DefaultHttpParams(null));
|
||||||
response.setEntity(entity);
|
response.setEntity(entity);
|
||||||
|
|
Loading…
Reference in New Issue