Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/org/apache/http/params/CoreConnectionPNames#constants)

# CoreConnectionPNames


`
public


interface
CoreConnectionPNames
`


`


`

|---|
| org.apache.http.params.CoreConnectionPNames |

|---|
| Known indirect subclasses [HttpConnectionParams](https://developer.android.com/reference/org/apache/http/params/HttpConnectionParams) |---|---| | [HttpConnectionParams](https://developer.android.com/reference/org/apache/http/params/HttpConnectionParams) | *This class was deprecated in API level 22. Please use `https://developer.android.com/reference/java/net/URL#openConnection()` instead. Please visit [this webpage](http://android-developers.blogspot.com/2011/09/androids-http-clients.html) for further details.* | |

<br />

*** ** * ** ***


**This interface was deprecated
in API level 22.**   

Please use `https://developer.android.com/reference/java/net/URL#openConnection()` instead.
Please visit [this webpage](http://android-developers.blogspot.com/2011/09/androids-http-clients.html)
for further details.

Defines parameter names for connections in HttpCore.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/org/apache/http/params/CoreConnectionPNames#CONNECTION_TIMEOUT` Determines the timeout until a connection is etablished. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/org/apache/http/params/CoreConnectionPNames#MAX_HEADER_COUNT` Determines the maximum HTTP header count allowed. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/org/apache/http/params/CoreConnectionPNames#MAX_LINE_LENGTH` Determines the maximum line length limit. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/org/apache/http/params/CoreConnectionPNames#SOCKET_BUFFER_SIZE` Determines the size of the internal socket buffer used to buffer data while receiving / transmitting HTTP messages. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/org/apache/http/params/CoreConnectionPNames#SO_LINGER` Sets SO_LINGER with the specified linger time in seconds. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/org/apache/http/params/CoreConnectionPNames#SO_TIMEOUT` Defines the default socket timeout (SO_TIMEOUT) in milliseconds which is the timeout for waiting for data. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/org/apache/http/params/CoreConnectionPNames#STALE_CONNECTION_CHECK` Determines whether stale connection check is to be used. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/org/apache/http/params/CoreConnectionPNames#TCP_NODELAY` Determines whether Nagle's algorithm is to be used. |

## Constants

### CONNECTION_TIMEOUT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String CONNECTION_TIMEOUT
```

Determines the timeout until a connection is etablished. A value of zero
means the timeout is not used. The default value is zero.


This parameter expects a value of type `https://developer.android.com/reference/java/lang/Integer`.

<br />

<br />

Constant Value:

"http.connection.timeout"


### MAX_HEADER_COUNT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String MAX_HEADER_COUNT
```

Determines the maximum HTTP header count allowed. 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 `https://developer.android.com/reference/java/lang/Integer`.

<br />

<br />

Constant Value:

"http.connection.max-header-count"


### MAX_LINE_LENGTH

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String MAX_LINE_LENGTH
```

Determines the maximum line length limit. 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 `https://developer.android.com/reference/java/lang/Integer`.

<br />

<br />

Constant Value:

"http.connection.max-line-length"


### SOCKET_BUFFER_SIZE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String SOCKET_BUFFER_SIZE
```

Determines the size of the internal socket buffer used to buffer data
while receiving / transmitting HTTP messages.


This parameter expects a value of type `https://developer.android.com/reference/java/lang/Integer`.

<br />

<br />

Constant Value:

"http.socket.buffer-size"


### SO_LINGER

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String SO_LINGER
```

Sets SO_LINGER with the specified linger time in seconds. 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 `https://developer.android.com/reference/java/lang/Integer`.

<br />

<br />

**See also:**

- `https://developer.android.com/reference/java/net/SocketOptions#SO_LINGER`

Constant Value:

"http.socket.linger"


### SO_TIMEOUT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String SO_TIMEOUT
```

Defines the default socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data. 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 `https://developer.android.com/reference/java/lang/Integer`.

<br />

<br />

**See also:**

- `https://developer.android.com/reference/java/net/SocketOptions#SO_TIMEOUT`

Constant Value:

"http.socket.timeout"


### STALE_CONNECTION_CHECK

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String STALE_CONNECTION_CHECK
```

Determines whether stale connection check is to be used. 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 `https://developer.android.com/reference/java/lang/Boolean`.

<br />

<br />

Constant Value:

"http.connection.stalecheck"


### TCP_NODELAY

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String TCP_NODELAY
```

Determines whether Nagle's algorithm is to be used. 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 `https://developer.android.com/reference/java/lang/Boolean`.

<br />

<br />

**See also:**

- `https://developer.android.com/reference/java/net/SocketOptions#TCP_NODELAY`

Constant Value:

"http.tcp.nodelay"