git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@765595 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-04-16 12:22:20 +00:00
parent 78a0d3346d
commit 834c667310
1 changed files with 11 additions and 0 deletions

View File

@ -126,6 +126,17 @@ public class DefaultHttpClient extends AbstractHttpClient {
}
/**
* Creates a new BasicHttpParams object, and sets up the following:
* <ul>
* <li>Version: HttpVersion.HTTP_1_1</li>
* <li>ContentCharset: HTTP.DEFAULT_CONTENT_CHARSET</li>
* <li>UseExpectContinue: true</li>
* <li>NoTcpDelay: true</li>
* <li>SocketBufferSize: 8192</li>
* <li>UserAgent: Apache-HttpClient/release (java 1.5)</li>
* </ul>
*/
@Override
protected HttpParams createHttpParams() {
HttpParams params = new BasicHttpParams();