Defines parameter names for connections in HttpCore. More...
The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
Static Public Attributes | |
static final String | SO_TIMEOUT = "http.socket.timeout" |
Defines the default socket timeout (SO_TIMEOUT ) in milliseconds which is the timeout for waiting for data. More... | |
static final String | TCP_NODELAY = "http.tcp.nodelay" |
Determines whether Nagle's algorithm is to be used. More... | |
static final String | SOCKET_BUFFER_SIZE = "http.socket.buffer-size" |
Determines the size of the internal socket buffer used to buffer data while receiving / transmitting HTTP messages. More... | |
static final String | SO_LINGER = "http.socket.linger" |
Sets SO_LINGER with the specified linger time in seconds. More... | |
static final String | CONNECTION_TIMEOUT = "http.connection.timeout" |
Determines the timeout until a connection is etablished. More... | |
static final String | STALE_CONNECTION_CHECK = "http.connection.stalecheck" |
Determines whether stale connection check is to be used. More... | |
static final String | MAX_LINE_LENGTH = "http.connection.max-line-length" |
Determines the maximum line length limit. More... | |
static final String | MAX_HEADER_COUNT = "http.connection.max-header-count" |
Determines the maximum HTTP header count allowed. More... | |
|
static |
A timeout value of zero is interpreted as an infinite timeout. This value is used when no socket timeout is set in the method parameters.
This parameter expects a value of type Integer.
|
static |
The Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent. When applications wish to decrease network latency and increase performance, they can disable Nagle's algorithm (that is enable TCP_NODELAY). Data will be sent earlier, at the cost of an increase in bandwidth consumption.
This parameter expects a value of type Boolean.
|
static |
This parameter expects a value of type Integer.
|
static |
The maximum timeout value is platform specific. Value 0
implies that the option is disabled. Value -1
implies that the JRE default is used. The setting only affects socket close.
This parameter expects a value of type Integer.
|
static |
A value of zero means the timeout is not used. The default value is zero.
This parameter expects a value of type Integer.
|
static |
Disabling stale connection check may result in slight performance improvement at the risk of getting an I/O error when executing a request over a connection that has been closed at the server side.
This parameter expects a value of type Boolean.
|
static |
If set to a positive value, any HTTP line exceeding this limit will cause an IOException. A negative or zero value will effectively disable the check.
This parameter expects a value of type Integer.
|
static |
If set to a positive value, the number of HTTP headers received from the data stream exceeding this limit will cause an IOException. A negative or zero value will effectively disable the check.
This parameter expects a value of type Integer.