//okhttp/okhttp3/Protocol/HTTP_2
HTTP_2¶
[common]\ HTTP_2
The IETF’s binary-framed protocol that includes header compression, multiplexing multiple requests on the same socket, and server-push. HTTP/1.1 semantics are layered on HTTP/2.
HTTP/2 requires deployments of HTTP/2 that use TLS 1.2 support CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, present in Java 8+ and Android 5+. Servers that enforce this may send an exception message including the string INADEQUATE_SECURITY
.
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 |