Home
last modified time | relevance | path

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

/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/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/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/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()
DHttp2.java46 return Protocol.HTTP_2; in getProtocol()
/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/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/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/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) {