okhttp / okhttp3 / Protocol / H2_PRIOR_KNOWLEDGE

H2_PRIOR_KNOWLEDGE

H2_PRIOR_KNOWLEDGE

Cleartext HTTP/2 with no "upgrade" round trip. This option requires the client to have prior knowledge that the server supports cleartext HTTP/2.

See also Starting HTTP/2 with Prior Knowledge.

Inherited Functions

toString

fun toString(): String

Returns the string used to identify this protocol for ALPN, like "http/1.1", "spdy/3.1" or "h2".