//okhttp/okhttp3/Protocol/H2_PRIOR_KNOWLEDGE
H2_PRIOR_KNOWLEDGE¶
[common]\ 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.
Functions¶
| Name | Summary |
|---|---|
| toString | [common] open override fun toString(): String Returns the string used to identify this protocol for ALPN, like "http/1.1", "spdy/3.1" or "h2". |
Properties¶
| Name | Summary |
|---|---|
| name | [common] val name: String |
| ordinal | [common] val ordinal: Int |