Home
last modified time | relevance | path

Searched refs:headerBlock (Results 1 – 13 of 13) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/
DHttp2Test.java72 int associatedStreamId, List<Header> headerBlock, HeadersMode headersMode) { in onlyOneLiteralHeadersFrame()
77 assertEquals(sentHeaders, headerBlock); in onlyOneLiteralHeadersFrame()
120 Buffer headerBlock = literalHeaders(sentHeaders); in headersFrameThenContinuation() local
127 frame.write(headerBlock, Http2.INITIAL_MAX_FRAME_SIZE); in headersFrameThenContinuation()
130 writeMedium(frame, (int) headerBlock.size()); in headersFrameThenContinuation()
134 frame.writeAll(headerBlock); in headersFrameThenContinuation()
141 int associatedStreamId, List<Header> headerBlock, HeadersMode headersMode) { in headersFrameThenContinuation()
146 assertEquals(sentHeaders, headerBlock); in headersFrameThenContinuation()
175 public void pushPromise(int streamId, int promisedStreamId, List<Header> headerBlock) { in pushPromise()
178 assertEquals(pushPromise, headerBlock); in pushPromise()
[all …]
DMockSpdyPeer.java218 public List<Header> headerBlock; field in MockSpdyPeer.InFrame
245 int associatedStreamId, List<Header> headerBlock, HeadersMode headersMode) { in headers() argument
252 this.headerBlock = headerBlock; in headers()
301 public void pushPromise(int streamId, int associatedStreamId, List<Header> headerBlock) { in pushPromise() argument
305 this.headerBlock = headerBlock; in pushPromise()
DHpackTest.java52 List<Header> headerBlock = headerEntries("cookie", new String(value)); in largeHeaderValue() local
54 hpackWriter.writeHeaders(headerBlock); in largeHeaderValue()
60 assertEquals(headerBlock, hpackReader.getAndResetHeaderList()); in largeHeaderValue()
191 List<Header> headerBlock = headerEntries(":path", "/sample/path"); in literalHeaderFieldWithoutIndexingIndexedName() local
198 hpackWriter.writeHeaders(headerBlock); in literalHeaderFieldWithoutIndexingIndexedName()
205 assertEquals(headerBlock, hpackReader.getAndResetHeaderList()); in literalHeaderFieldWithoutIndexingIndexedName()
209 List<Header> headerBlock = headerEntries("custom-key", "custom-header"); in literalHeaderFieldWithoutIndexingNewName() local
218 hpackWriter.writeHeaders(headerBlock); in literalHeaderFieldWithoutIndexingNewName()
225 assertEquals(headerBlock, hpackReader.getAndResetHeaderList()); in literalHeaderFieldWithoutIndexingNewName()
DBaseTestHandler.java33 List<Header> headerBlock, HeadersMode headersMode) { in headers() argument
67 public void pushPromise(int streamId, int associatedStreamId, List<Header> headerBlock) { in pushPromise() argument
DSpdy3ConnectionTest.java92 assertEquals(headerEntries("b", "banana"), synStream.headerBlock); in clientCreatesStreamAndServerReplies()
167 assertEquals(headerEntries("b", "banana"), reply.headerBlock); in serverCreatesStreamAndClientReplies()
192 assertEquals(headerEntries("b", "banana"), reply.headerBlock); in replyWithNoData()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
DSpdy3.java198 List<Header> headerBlock = headerBlockReader.readNameValueBlock(length - 10); in readSynStream() local
202 handler.headers(outFinished, inFinished, streamId, associatedStreamId, headerBlock, in readSynStream()
209 List<Header> headerBlock = headerBlockReader.readNameValueBlock(length - 4); in readSynReply() local
211 handler.headers(false, inFinished, streamId, -1, headerBlock, HeadersMode.SPDY_REPLY); in readSynReply()
228 List<Header> headerBlock = headerBlockReader.readNameValueBlock(length - 4); in readHeaders() local
229 handler.headers(false, false, streamId, -1, headerBlock, HeadersMode.SPDY_HEADERS); in readHeaders()
324 int streamId, int associatedStreamId, List<Header> headerBlock) in synStream() argument
327 writeNameValueBlockToBuffer(headerBlock); in synStream()
343 List<Header> headerBlock) throws IOException { in synReply() argument
345 writeNameValueBlockToBuffer(headerBlock); in synReply()
[all …]
DFrameWriter.java52 List<Header> headerBlock) throws IOException; in synStream() argument
53 void synReply(boolean outFinished, int streamId, List<Header> headerBlock) in synReply() argument
55 void headers(int streamId, List<Header> headerBlock) throws IOException; in headers() argument
DHttp2.java198 List<Header> headerBlock = readHeaderBlock(length, padding, flags, streamId); in readHeaders() local
200 handler.headers(false, endStream, streamId, -1, headerBlock, HeadersMode.HTTP_20_HEADERS); in readHeaders()
318 List<Header> headerBlock = readHeaderBlock(length, padding, flags, streamId); in readPushPromise() local
319 handler.pushPromise(streamId, promisedStreamId, headerBlock); in readPushPromise()
406 int streamId, int associatedStreamId, List<Header> headerBlock) in synStream() argument
410 headers(outFinished, streamId, headerBlock); in synStream()
414 List<Header> headerBlock) throws IOException { in synReply() argument
416 headers(outFinished, streamId, headerBlock); in synReply()
419 @Override public synchronized void headers(int streamId, List<Header> headerBlock) in headers() argument
422 headers(false, streamId, headerBlock); in headers()
[all …]
DHpack.java378 void writeHeaders(List<Header> headerBlock) throws IOException { in writeHeaders() argument
380 for (int i = 0, size = headerBlock.size(); i < size; i++) { in writeHeaders()
381 ByteString name = headerBlock.get(i).name.toAsciiLowercase(); in writeHeaders()
386 writeByteString(headerBlock.get(i).value); in writeHeaders()
390 writeByteString(headerBlock.get(i).value); in writeHeaders()
DFrameReader.java46 List<Header> headerBlock, HeadersMode headersMode); in headers() argument
DSpdyConnection.java612 int associatedStreamId, List<Header> headerBlock, HeadersMode headersMode) { in headers() argument
614 pushHeadersLater(streamId, headerBlock, inFinished); in headers()
639 inFinished, headerBlock); in headers()
666 stream.receiveHeaders(headerBlock, headersMode); in headers()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHeadersTest.java39 List<Header> headerBlock = headerEntries( in parseNameValueBlock() local
46 SpdyTransport.readNameValueBlock(headerBlock, Protocol.SPDY_3).request(request).build(); in parseNameValueBlock()
68 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersSpdy3() local
74 SpdyTransport.readNameValueBlock(headerBlock, Protocol.SPDY_3).request(request).build(); in readNameValueBlockDropsForbiddenHeadersSpdy3()
82 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersHttp2() local
87 Response response = SpdyTransport.readNameValueBlock(headerBlock, Protocol.HTTP_2) in readNameValueBlockDropsForbiddenHeadersHttp2()
103 List<Header> headerBlock = in toNameValueBlock() local
114 assertEquals(expected, headerBlock); in toNameValueBlock()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DSpdyTransport.java171 public static Response.Builder readNameValueBlock(List<Header> headerBlock, in readNameValueBlock() argument
178 for (int i = 0, size = headerBlock.size(); i < size; i++) { in readNameValueBlock()
179 ByteString name = headerBlock.get(i).name; in readNameValueBlock()
180 String values = headerBlock.get(i).value.utf8(); in readNameValueBlock()