okhttp / okhttp3 / Route

Route

class Route

The concrete route used by a connection to reach an abstract origin server. When creating a connection the client has many options:

Each route is a specific selection of these options.

Constructors

<init>

Route(address: Address, proxy: Proxy, socketAddress: InetSocketAddress)

The concrete route used by a connection to reach an abstract origin server. When creating a connection the client has many options:

Properties

address

val address: Address

proxy

val proxy: Proxy

Returns the Proxy of this route.

socketAddress

val socketAddress: InetSocketAddress

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

requiresTunnel

fun requiresTunnel(): Boolean

Returns true if this route tunnels HTTPS through an HTTP proxy. See RFC 2817, Section 5.2.

toString

fun toString(): String