Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions) Summary: [Constants](https://developer.android.com/reference/android/net/http/UrlRequest.Status#constants) \| [Inherited Methods](https://developer.android.com/reference/android/net/http/UrlRequest.Status#inhmethods)

# UrlRequest.Status

*** ** * ** ***


`
public
static


class
UrlRequest.Status
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.net.http.UrlRequest.Status |

<br />

*** ** * ** ***

Request status values returned by `https://developer.android.com/reference/android/net/http/UrlRequest#getStatus(android.net.http.UrlRequest.StatusListener)`.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#CONNECTING` This state corresponds to a resource load that is blocked waiting for a TCP connection (or other network connection) to be established. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#DOWNLOADING_PAC_FILE` This state corresponds to a resource being blocked waiting for the PAC script to be downloaded. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#ESTABLISHING_PROXY_TUNNEL` This state indicates that we're in the process of establishing a tunnel through the proxy server. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#IDLE` This state corresponds to a resource load that has either not yet begun or is idle waiting for the consumer to do something to move things along (e.g. when the consumer of a `https://developer.android.com/reference/android/net/http/UrlRequest` has not called `https://developer.android.com/reference/android/net/http/UrlRequest#read(java.nio.ByteBuffer)` yet). |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#INVALID` This state indicates that the request is completed, canceled, or is not started. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#READING_RESPONSE` This state corresponds to a resource load that is blocked waiting for a read to complete. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#RESOLVING_HOST` This state corresponds to a resource load that is blocked waiting for a host name to be resolved. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#RESOLVING_HOST_IN_PAC_FILE` This state corresponds to a resource load that is blocked waiting for a proxy autoconfig script to return a proxy server to use, but that proxy script is busy resolving the IP address of a host. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#RESOLVING_PROXY_FOR_URL` This state corresponds to a resource load that is blocked waiting for a proxy autoconfig script to return a proxy server to use. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#SENDING_REQUEST` This state corresponds to a resource load that is blocked waiting to completely upload a request to a server. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#SSL_HANDSHAKE` This state corresponds to a resource load that is blocked waiting for the SSL handshake to complete. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#WAITING_FOR_AVAILABLE_SOCKET` When a socket pool group has reached the maximum number of sockets allowed per group, this state is returned for all requests that don't have a socket, except those that correspond to a pending new connection. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#WAITING_FOR_CACHE` This state corresponds to a resource load that is blocked waiting for access to a resource in the cache. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#WAITING_FOR_DELEGATE` This state indicates that the URLRequest delegate has chosen to block this request before it was sent over the network. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#WAITING_FOR_RESPONSE` This state corresponds to a resource load that is blocked waiting for the response to a network request. |
| `int` | `https://developer.android.com/reference/android/net/http/UrlRequest.Status#WAITING_FOR_STALLED_SOCKET_POOL` When a socket pool group is below the maximum number of sockets allowed per group, but a new socket cannot be created due to the per-pool socket limit, this state is returned by all requests for the group waiting on an idle connection, except those that may be serviced by a pending new connection. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Constants

### CONNECTING

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int CONNECTING
```

This state corresponds to a resource load that is blocked waiting for a TCP connection
(or other network connection) to be established. HTTP requests that reuse a keep-alive
connection skip this state.

<br />

Constant Value:

10
(0x0000000a)


### DOWNLOADING_PAC_FILE

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int DOWNLOADING_PAC_FILE
```

This state corresponds to a resource being blocked waiting for the PAC script to be
downloaded.

<br />

Constant Value:

5
(0x00000005)


### ESTABLISHING_PROXY_TUNNEL

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int ESTABLISHING_PROXY_TUNNEL
```

This state indicates that we're in the process of establishing a tunnel through the proxy
server.

<br />

Constant Value:

8
(0x00000008)


### IDLE

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int IDLE
```

This state corresponds to a resource load that has either not yet begun or is idle
waiting for the consumer to do something to move things along (e.g. when the consumer of
a `https://developer.android.com/reference/android/net/http/UrlRequest` has not called `https://developer.android.com/reference/android/net/http/UrlRequest#read(java.nio.ByteBuffer)` yet).

<br />

Constant Value:

0
(0x00000000)


### INVALID

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int INVALID
```

This state indicates that the request is completed, canceled, or is not started.

<br />

Constant Value:

-1
(0xffffffff)


### READING_RESPONSE

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int READING_RESPONSE
```

This state corresponds to a resource load that is blocked waiting for a read to complete.
In the case of a HTTP transaction, this corresponds to the period after the response
headers have been received and before all of the response body has been downloaded.
(NOTE: This state only applies for an `https://developer.android.com/reference/android/net/http/UrlRequest` while there is an outstanding
`https://developer.android.com/reference/android/net/http/UrlRequest#read(java.nio.ByteBuffer)` operation.)

<br />

Constant Value:

14
(0x0000000e)


### RESOLVING_HOST

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int RESOLVING_HOST
```

This state corresponds to a resource load that is blocked waiting for a host name to be
resolved. This could either indicate resolution of the origin server corresponding to the
resource or to the host name of a proxy server used to fetch the resource.

<br />

Constant Value:

9
(0x00000009)


### RESOLVING_HOST_IN_PAC_FILE

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int RESOLVING_HOST_IN_PAC_FILE
```

This state corresponds to a resource load that is blocked waiting for a proxy autoconfig
script to return a proxy server to use, but that proxy script is busy resolving the IP
address of a host.

<br />

Constant Value:

7
(0x00000007)


### RESOLVING_PROXY_FOR_URL

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int RESOLVING_PROXY_FOR_URL
```

This state corresponds to a resource load that is blocked waiting for a proxy autoconfig
script to return a proxy server to use.

<br />

Constant Value:

6
(0x00000006)


### SENDING_REQUEST

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int SENDING_REQUEST
```

This state corresponds to a resource load that is blocked waiting to completely upload a
request to a server. In the case of a HTTP POST request, this state includes the period
of time during which the message body is being uploaded.

<br />

Constant Value:

12
(0x0000000c)


### SSL_HANDSHAKE

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int SSL_HANDSHAKE
```

This state corresponds to a resource load that is blocked waiting for the SSL handshake
to complete.

<br />

Constant Value:

11
(0x0000000b)


### WAITING_FOR_AVAILABLE_SOCKET

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int WAITING_FOR_AVAILABLE_SOCKET
```

When a socket pool group has reached the maximum number of sockets allowed per group,
this state is returned for all requests that don't have a socket, except those that
correspond to a pending new connection.

<br />

Constant Value:

2
(0x00000002)


### WAITING_FOR_CACHE

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int WAITING_FOR_CACHE
```

This state corresponds to a resource load that is blocked waiting for access to a
resource in the cache. If multiple requests are made for the same resource, the first
request will be responsible for writing (or updating) the cache entry and the second
request will be deferred until the first completes. This may be done to optimize for
cache reuse.

<br />

Constant Value:

4
(0x00000004)


### WAITING_FOR_DELEGATE

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int WAITING_FOR_DELEGATE
```

This state indicates that the URLRequest delegate has chosen to block this request before
it was sent over the network.

<br />

Constant Value:

3
(0x00000003)


### WAITING_FOR_RESPONSE

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int WAITING_FOR_RESPONSE
```

This state corresponds to a resource load that is blocked waiting for the response to a
network request. In the case of a HTTP transaction, this corresponds to the period after
the request is sent and before all of the response headers have been received.

<br />

Constant Value:

13
(0x0000000d)


### WAITING_FOR_STALLED_SOCKET_POOL

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [S Extensions 7](https://developer.android.com/sdkExtensions)

```
public static final int WAITING_FOR_STALLED_SOCKET_POOL
```

When a socket pool group is below the maximum number of sockets allowed per group, but a
new socket cannot be created due to the per-pool socket limit, this state is returned by
all requests for the group waiting on an idle connection, except those that may be
serviced by a pending new connection.

<br />

Constant Value:

1
(0x00000001)