Home
last modified time | relevance | path

Searched refs:HTTP_2 (Results 1 – 25 of 28) sorted by relevance

12

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttp2ConnectionTest.java51 private static final Variant HTTP_2 = new Http2(); field in Http2ConnectionTest
59 peer.setVariantAndClient(HTTP_2, false); in serverPingsClientHttp2()
67 connection(peer, HTTP_2); in serverPingsClientHttp2()
79 peer.setVariantAndClient(HTTP_2, false); in clientPingsServerHttp2()
87 FramedConnection connection = connection(peer, HTTP_2); in clientPingsServerHttp2()
101 peer.setVariantAndClient(HTTP_2, false);
115 FramedConnection connection = connection(peer, HTTP_2);
177 peer.setVariantAndClient(HTTP_2, false);
189 FramedConnection connection = connection(peer, HTTP_2);
229 peer.setVariantAndClient(HTTP_2, false);
[all …]
DHttpOverHttp2Test.java31 super(Protocol.HTTP_2); in HttpOverHttp2Test()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DProtocol.java71 HTTP_2("h2"); enumConstant
87 if (protocol.equals(HTTP_2.protocol)) return HTTP_2; in get()
DOkHttpClient.java58 Protocol.HTTP_2, Protocol.SPDY_3, Protocol.HTTP_1_1);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DProtocol.java69 HTTP_2("h2"); enumConstant
85 if (protocol.equals(HTTP_2.protocol)) return HTTP_2; in get()
DOkHttpClient.java55 Protocol.HTTP_2, Protocol.SPDY_3, Protocol.HTTP_1_1);
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/
DProtocol.java73 HTTP_2("h2"), enumConstant
98 if (protocol.equals(HTTP_2.protocol)) return HTTP_2; in get()
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DOkHttpProtocolNegotiatorTest.java121 negotiator.negotiate(sock, "hostname", ImmutableList.of(Protocol.HTTP_2)); in negotiate_handshakeFails()
133 negotiator.negotiate(sock, "hostname", ImmutableList.of(Protocol.HTTP_2)); in negotiate_noSelectedProtocol()
141 String actual = negotiator.negotiate(sock, "hostname", ImmutableList.of(Protocol.HTTP_2)); in negotiate_success()
161 ImmutableList.of(Protocol.GRPC_EXP, Protocol.HTTP_2)); in negotiate_preferGrpcExp()
185 negotiator.negotiate(androidSock, "hostname", ImmutableList.of(Protocol.HTTP_2)); in negotiate_android_handshakeFails()
DOkHttpTlsUpgraderTest.java35 < OkHttpTlsUpgrader.TLS_PROTOCOLS.indexOf(Protocol.HTTP_2)); in upgrade_grpcExp()
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/
DOpenJdkEngineFactory.java45 SelectedListenerFailureBehavior.ACCEPT, ApplicationProtocolNames.HTTP_2);
90 … Conscrypt.setApplicationProtocols(engine, new String[] {ApplicationProtocolNames.HTTP_2}); in newClientEngine()
99 … Conscrypt.setApplicationProtocols(engine, new String[] {ApplicationProtocolNames.HTTP_2}); in newServerEngine()
122 … Conscrypt.setApplicationProtocols(engine, new String[] {ApplicationProtocolNames.HTTP_2}); in newClientEngine()
132 … Conscrypt.setApplicationProtocols(engine, new String[] {ApplicationProtocolNames.HTTP_2}); in newServerEngine()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCallTest.java176 enableProtocol(Protocol.HTTP_2); in get_HTTP_2()
215 enableProtocol(Protocol.HTTP_2); in repeatedHeaderNames_HTTP_2()
255 enableProtocol(Protocol.HTTP_2); in head_HTTP_2()
289 enableProtocol(Protocol.HTTP_2); in post_HTTP_2()
323 enableProtocol(Protocol.HTTP_2); in postZerolength_HTTP_2()
342 enableProtocol(Protocol.HTTP_2); in postBodyRetransmittedAfterAuthorizationFail_HTTP_2()
362 enableProtocol(Protocol.HTTP_2); in postEmptyBodyRetransmittedAfterAuthorizationFail_HTTP_2()
453 enableProtocol(Protocol.HTTP_2); in delete_HTTP_2()
504 enableProtocol(Protocol.HTTP_2); in put_HTTP_2()
533 enableProtocol(Protocol.HTTP_2); in patch_HTTP_2()
[all …]
DOkHttpClientTest.java104 assertEquals(Arrays.asList(Protocol.HTTP_2, Protocol.SPDY_3, Protocol.HTTP_1_1), in copyWithDefaultsWhenDefaultIsAConstant()
DConnectionReuseTest.java230 client.setProtocols(Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1)); in enableHttp2()
DURLConnectionTest.java1423 enableProtocol(Protocol.HTTP_2);
1438 enableProtocol(Protocol.HTTP_2);
2977 setsNegotiatedProtocolHeader(Protocol.HTTP_2);
3015 enableProtocol(Protocol.HTTP_2);
3030 enableProtocol(Protocol.HTTP_2);
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/
DFramedConnection.java140 if (builder.client && protocol == Protocol.HTTP_2) { in FramedConnection()
156 if (protocol == Protocol.HTTP_2) { in FramedConnection()
237 if (protocol != Protocol.HTTP_2) throw new IllegalStateException("protocol != HTTP_2"); in pushStream()
724 if (getProtocol() == Protocol.HTTP_2) { in settings()
834 return protocol == Protocol.HTTP_2 && streamId != 0 && (streamId & 1) == 0; in pushedStream()
DHttp2.java48 return Protocol.HTTP_2; in getProtocol()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DFramedConnection.java138 if (builder.client && protocol == Protocol.HTTP_2) { in FramedConnection()
154 if (protocol == Protocol.HTTP_2) { in FramedConnection()
235 if (protocol != Protocol.HTTP_2) throw new IllegalStateException("protocol != HTTP_2"); in pushStream()
719 if (getProtocol() == Protocol.HTTP_2) { in settings()
829 return protocol == Protocol.HTTP_2 && streamId != 0 && (streamId & 1) == 0; in pushedStream()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttp2xStream.java131 List<Header> requestHeaders = framedConnection.getProtocol() == Protocol.HTTP_2 in writeRequestHeaders()
149 return framedConnection.getProtocol() == Protocol.HTTP_2 in readResponseHeaders()
271 .protocol(Protocol.HTTP_2) in readHttp2HeadersList()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DHttp2xStream.java133 List<Header> requestHeaders = framedConnection.getProtocol() == Protocol.HTTP_2 in writeRequestHeaders()
151 return framedConnection.getProtocol() == Protocol.HTTP_2 in readResponseHeaders()
273 .protocol(Protocol.HTTP_2) in readHttp2HeadersList()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DExternalHttp2Example.java37 .setProtocols(Util.immutableList(Protocol.HTTP_2, Protocol.HTTP_1_1)); in main()
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DOkHttpTlsUpgrader.java46 Collections.unmodifiableList(Arrays.<Protocol>asList(Protocol.GRPC_EXP, Protocol.HTTP_2));
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/framed/
DFramedServer.java43 Util.immutableList(Protocol.HTTP_2, Protocol.SPDY_3);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/io/
DRealConnection.java155 if (protocol == Protocol.SPDY_3 || protocol == Protocol.HTTP_2) { in connectSocket()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/io/
DRealConnection.java159 if (protocol == Protocol.SPDY_3 || protocol == Protocol.HTTP_2) { in connectSocket()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java131 = Util.immutableList(Protocol.HTTP_2, Protocol.SPDY_3, Protocol.HTTP_1_1);
901 } else if (protocol == Protocol.HTTP_2) {

12