Home
last modified time | relevance | path

Searched refs:headerEntries (Results 1 – 6 of 6) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DSpdy3ConnectionTest.java39 import static com.squareup.okhttp.TestUtil.headerEntries;
71 .synReply(false, 1, headerEntries("a", "android")); in clientCreatesStreamAndServerReplies()
78 FramedStream stream = connection.newStream(headerEntries("b", "banana"), true, true); in clientCreatesStreamAndServerReplies()
79 assertEquals(headerEntries("a", "android"), stream.getResponseHeaders()); in clientCreatesStreamAndServerReplies()
94 assertEquals(headerEntries("b", "banana"), synStream.headerBlock); in clientCreatesStreamAndServerReplies()
101 peer.sendFrame().synReply(false, 1, headerEntries("b", "banana")); in headersOnlyStreamIsClosedAfterReplyHeaders()
107 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, false); in headersOnlyStreamIsClosedAfterReplyHeaders()
109 assertEquals(headerEntries("b", "banana"), stream.getResponseHeaders()); in headersOnlyStreamIsClosedAfterReplyHeaders()
118 peer.sendFrame().synReply(true, 1, headerEntries("a", "android")); in clientCreatesStreamAndServerRepliesWithFin()
124 connection.newStream(headerEntries("b", "banana"), false, true); in clientCreatesStreamAndServerRepliesWithFin()
[all …]
DHttp2ConnectionTest.java33 import static com.squareup.okhttp.TestUtil.headerEntries;
131 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, true);
190 FramedStream stream1 = connection.newStream(headerEntries("a", "android"), true, true);
191 FramedStream stream2 = connection.newStream(headerEntries("b", "banana"), true, true);
206 connection.newStream(headerEntries("c", "cola"), true, true);
236 peer.sendFrame().synReply(false, 3, headerEntries("a", "android"));
251 FramedStream stream = connection.newStream(headerEntries("b", "banana"), false, true);
253 assertEquals(headerEntries("a", "android"), stream.getResponseHeaders());
284 peer.sendFrame().synReply(false, 3, headerEntries("a", "android"));
290 FramedStream client = connection.newStream(headerEntries("b", "banana"), false, true);
[all …]
DHpackTest.java26 import static com.squareup.okhttp.TestUtil.headerEntries;
52 List<Header> headerBlock = headerEntries("cookie", new String(value)); in largeHeaderValue()
80 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in tooLargeToHPackIsStillEmitted()
121 headerEntries( in testEviction()
184 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in readLiteralHeaderFieldWithIndexing()
191 List<Header> headerBlock = headerEntries(":path", "/sample/path"); in literalHeaderFieldWithoutIndexingIndexedName()
209 List<Header> headerBlock = headerEntries("custom-key", "custom-header"); in literalHeaderFieldWithoutIndexingNewName()
238 assertEquals(headerEntries(":path", "/sample/path"), hpackReader.getAndResetHeaderList()); in literalHeaderFieldNeverIndexedIndexedName()
253 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in literalHeaderFieldNeverIndexedNewName()
267 assertEquals(headerEntries(":method", "GET"), hpackReader.getAndResetHeaderList()); in staticHeaderIsNotCopiedIntoTheIndexedTable()
[all …]
DHttp2Test.java30 import static com.squareup.okhttp.TestUtil.headerEntries;
58 final List<Header> sentHeaders = headerEntries("name", "value"); in onlyOneLiteralHeadersFrame()
84 final List<Header> sentHeaders = headerEntries("name", "value"); in headersWithPriority()
464 Buffer headerBlock = literalHeaders(headerEntries("foo", "barrr", "baz", "qux")); in readPaddedHeadersFrame()
478 Buffer headerBlock = literalHeaders(headerEntries("foo", "barrr", "baz", "qux")); in readPaddedHeadersFrameZeroPadding()
496 Buffer headerBlock = literalHeaders(headerEntries("foo", "barrr", "baz", "qux")); in readPaddedHeadersFrameThenContinuation()
701 assertEquals(headerEntries("foo", "barrr", "baz", "qux"), headerBlock); in assertHeaderBlock()
736 return headerEntries(nameValues);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHeadersTest.java31 import static com.squareup.okhttp.TestUtil.headerEntries;
38 List<Header> headerBlock = headerEntries( in parseNameValueBlock()
63 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersSpdy3()
74 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersHttp2()
95 List<Header> expected = headerEntries( in spdy3HeadersList()
113 List<Header> expected = headerEntries( in spdy3HeadersListDropsForbiddenHeadersSpdy3()
128 List<Header> expected = headerEntries( in http2HeadersListDropsForbiddenHeadersHttp2()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DTestUtil.java15 public static List<Header> headerEntries(String... elements) { in headerEntries() method in TestUtil