# UrlRequest.Status


```
class UrlRequest.Status
```

<br />

*** ** * ** ***

Request status values returned by `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest#getStatus(org.chromium.net.UrlRequest.StatusListener)`.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#CONNECTING() = 10` This state corresponds to a resource load that is blocked waiting for a TCP connection (or other network connection) to be established. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#DOWNLOADING_PAC_FILE() = 5` This state corresponds to a resource being blocked waiting for the PAC script to be downloaded. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#ESTABLISHING_PROXY_TUNNEL() = 8` This state indicates that we're in the process of establishing a tunnel through the proxy server. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#IDLE() = 0` 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/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest` has not called `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest#read(java.nio.ByteBuffer)` yet). |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#INVALID() = -1` This state indicates that the request is completed, canceled, or is not started. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#READING_RESPONSE() = 14` This state corresponds to a resource load that is blocked waiting for a read to complete. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#RESOLVING_HOST() = 9` This state corresponds to a resource load that is blocked waiting for a host name to be resolved. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#RESOLVING_HOST_IN_PAC_FILE() = 7` 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. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#RESOLVING_PROXY_FOR_URL() = 6` This state corresponds to a resource load that is blocked waiting for a proxy autoconfig script to return a proxy server to use. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#SENDING_REQUEST() = 12` This state corresponds to a resource load that is blocked waiting to completely upload a request to a server. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#SSL_HANDSHAKE() = 11` This state corresponds to a resource load that is blocked waiting for the SSL handshake to complete. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#WAITING_FOR_AVAILABLE_SOCKET() = 2` 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. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#WAITING_FOR_CACHE() = 4` This state corresponds to a resource load that is blocked waiting for access to a resource in the cache. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#WAITING_FOR_DELEGATE() = 3` This state indicates that the URLRequest delegate has chosen to block this request before it was sent over the network. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#WAITING_FOR_RESPONSE() = 13` This state corresponds to a resource load that is blocked waiting for the response to a network request. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest.Status#WAITING_FOR_STALLED_SOCKET_POOL() = 1` 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. |

## Constants

### CONNECTING

```
const val CONNECTING = 10: Int
```

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.

### DOWNLOADING_PAC_FILE

```
const val DOWNLOADING_PAC_FILE = 5: Int
```

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

### ESTABLISHING_PROXY_TUNNEL

```
const val ESTABLISHING_PROXY_TUNNEL = 8: Int
```

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

### IDLE

```
const val IDLE = 0: Int
```

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/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest` has not called `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest#read(java.nio.ByteBuffer)` yet).

### INVALID

```
const val INVALID = -1: Int
```

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

### READING_RESPONSE

```
const val READING_RESPONSE = 14: Int
```

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/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest` while there is an outstanding `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlRequest#read(java.nio.ByteBuffer)` operation.)

### RESOLVING_HOST

```
const val RESOLVING_HOST = 9: Int
```

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.

### RESOLVING_HOST_IN_PAC_FILE

```
const val RESOLVING_HOST_IN_PAC_FILE = 7: Int
```

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.

### RESOLVING_PROXY_FOR_URL

```
const val RESOLVING_PROXY_FOR_URL = 6: Int
```

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

### SENDING_REQUEST

```
const val SENDING_REQUEST = 12: Int
```

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.

### SSL_HANDSHAKE

```
const val SSL_HANDSHAKE = 11: Int
```

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

### WAITING_FOR_AVAILABLE_SOCKET

```
const val WAITING_FOR_AVAILABLE_SOCKET = 2: Int
```

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.

### WAITING_FOR_CACHE

```
const val WAITING_FOR_CACHE = 4: Int
```

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.

### WAITING_FOR_DELEGATE

```
const val WAITING_FOR_DELEGATE = 3: Int
```

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

### WAITING_FOR_RESPONSE

```
const val WAITING_FOR_RESPONSE = 13: Int
```

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.

### WAITING_FOR_STALLED_SOCKET_POOL

```
const val WAITING_FOR_STALLED_SOCKET_POOL = 1: Int
```

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.