Home
last modified time | relevance | path

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

12

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
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.java226 public List<Header> headerBlock; field in MockSpdyPeer.InFrame
253 int associatedStreamId, List<Header> headerBlock, HeadersMode headersMode) { in headers() argument
260 this.headerBlock = headerBlock; in headers()
309 public void pushPromise(int streamId, int associatedStreamId, List<Header> headerBlock) { in pushPromise() argument
313 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
/external/syzkaller/vendor/golang.org/x/net/http2/
Dwrite.go153 func splitHeaderBlock(ctx writeContext, headerBlock []byte, fn func(ctx writeContext, frag []byte, …
163 for len(headerBlock) > 0 {
164 frag := headerBlock
168 headerBlock = headerBlock[len(frag):]
169 if err := fn(ctx, frag, first, len(headerBlock) == 0); err != nil {
229 headerBlock := buf.Bytes()
230 if len(headerBlock) == 0 && w.trailers == nil {
234 return splitHeaderBlock(ctx, headerBlock, w.writeHeaderBlock)
278 headerBlock := buf.Bytes()
279 if len(headerBlock) == 0 {
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/
DSpdy3.java200 List<Header> headerBlock = headerBlockReader.readNameValueBlock(length - 10); in readSynStream() local
204 handler.headers(outFinished, inFinished, streamId, associatedStreamId, headerBlock, in readSynStream()
211 List<Header> headerBlock = headerBlockReader.readNameValueBlock(length - 4); in readSynReply() local
213 handler.headers(false, inFinished, streamId, -1, headerBlock, HeadersMode.SPDY_REPLY); in readSynReply()
230 List<Header> headerBlock = headerBlockReader.readNameValueBlock(length - 4); in readHeaders() local
231 handler.headers(false, false, streamId, -1, headerBlock, HeadersMode.SPDY_HEADERS); in readHeaders()
326 int streamId, int associatedStreamId, List<Header> headerBlock) in synStream() argument
329 writeNameValueBlockToBuffer(headerBlock); in synStream()
345 List<Header> headerBlock) throws IOException { in synReply() argument
347 writeNameValueBlockToBuffer(headerBlock); in synReply()
[all …]
DFrameWriter.java54 List<Header> headerBlock) throws IOException; in synStream() argument
55 void synReply(boolean outFinished, int streamId, List<Header> headerBlock) in synReply() argument
57 void headers(int streamId, List<Header> headerBlock) throws IOException; in headers() argument
DHttp2.java200 List<Header> headerBlock = readHeaderBlock(length, padding, flags, streamId); in readHeaders() local
202 handler.headers(false, endStream, streamId, -1, headerBlock, HeadersMode.HTTP_20_HEADERS); in readHeaders()
320 List<Header> headerBlock = readHeaderBlock(length, padding, flags, streamId); in readPushPromise() local
321 handler.pushPromise(streamId, promisedStreamId, headerBlock); in readPushPromise()
408 int streamId, int associatedStreamId, List<Header> headerBlock) in synStream() argument
412 headers(outFinished, streamId, headerBlock); in synStream()
416 List<Header> headerBlock) throws IOException { in synReply() argument
418 headers(outFinished, streamId, headerBlock); in synReply()
421 @Override public synchronized void headers(int streamId, List<Header> headerBlock) in headers() argument
424 headers(false, streamId, headerBlock); in headers()
[all …]
DHpack.java379 void writeHeaders(List<Header> headerBlock) throws IOException { in writeHeaders() argument
381 for (int i = 0, size = headerBlock.size(); i < size; i++) { in writeHeaders()
382 ByteString name = headerBlock.get(i).name.toAsciiLowercase(); in writeHeaders()
387 writeByteString(headerBlock.get(i).value); in writeHeaders()
391 writeByteString(headerBlock.get(i).value); in writeHeaders()
DFrameReader.java48 List<Header> headerBlock, HeadersMode headersMode); in headers() argument
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
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
DFramedConnection.java641 int associatedStreamId, List<Header> headerBlock, HeadersMode headersMode) { in headers() argument
643 pushHeadersLater(streamId, headerBlock, inFinished); in headers()
669 inFinished, headerBlock); in headers()
697 stream.receiveHeaders(headerBlock, headersMode); in headers()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHeadersTest.java38 List<Header> headerBlock = headerEntries( in parseNameValueBlock() local
44 Response response = Http2xStream.readSpdy3HeadersList(headerBlock).request(request).build(); in parseNameValueBlock()
63 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersSpdy3() local
68 Response response = Http2xStream.readSpdy3HeadersList(headerBlock).request(request).build(); in readNameValueBlockDropsForbiddenHeadersSpdy3()
74 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersHttp2() local
79 Response response = Http2xStream.readHttp2HeadersList(headerBlock).request(request).build(); in readNameValueBlockDropsForbiddenHeadersHttp2()
94 List<Header> headerBlock = Http2xStream.spdy3HeadersList(request); in spdy3HeadersList() local
104 assertEquals(expected, headerBlock); in spdy3HeadersList()
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DAsyncFrameWriter.java112 final int associatedStreamId, final List<Header> headerBlock) { in synStream() argument
116 frameWriter.synStream(outFinished, inFinished, streamId, associatedStreamId, headerBlock); in synStream()
123 final List<Header> headerBlock) { in synReply() argument
127 frameWriter.synReply(outFinished, streamId, headerBlock); in synReply()
133 public void headers(final int streamId, final List<Header> headerBlock) { in headers() argument
137 frameWriter.headers(streamId, headerBlock); in headers()
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/
DFrameWriter.java56 List<Header> headerBlock) throws IOException; in synStream() argument
57 void synReply(boolean outFinished, int streamId, List<Header> headerBlock) in synReply() argument
59 void headers(int streamId, List<Header> headerBlock) throws IOException; in headers() argument
DHttp2.java203 List<Header> headerBlock = readHeaderBlock(length, padding, flags, streamId); in readHeaders() local
205 handler.headers(false, endStream, streamId, -1, headerBlock, HeadersMode.HTTP_20_HEADERS); in readHeaders()
324 List<Header> headerBlock = readHeaderBlock(length, padding, flags, streamId); in readPushPromise() local
325 handler.pushPromise(streamId, promisedStreamId, headerBlock); in readPushPromise()
412 int streamId, int associatedStreamId, List<Header> headerBlock) in synStream() argument
416 headers(outFinished, streamId, headerBlock); in synStream()
420 List<Header> headerBlock) throws IOException { in synReply() argument
422 headers(outFinished, streamId, headerBlock); in synReply()
425 @Override public synchronized void headers(int streamId, List<Header> headerBlock) in headers() argument
428 headers(false, streamId, headerBlock); in headers()
[all …]
DHpack.java383 void writeHeaders(List<io.grpc.okhttp.internal.framed.Header> headerBlock) throws IOException { in writeHeaders() argument
385 for (int i = 0, size = headerBlock.size(); i < size; i++) { in writeHeaders()
386 ByteString name = headerBlock.get(i).name.toAsciiLowercase(); in writeHeaders()
391 writeByteString(headerBlock.get(i).value); in writeHeaders()
395 writeByteString(headerBlock.get(i).value); in writeHeaders()
DFrameReader.java50 List<io.grpc.okhttp.internal.framed.Header> headerBlock, HeadersMode headersMode); in headers() argument
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttp2xStream.java218 public static Response.Builder readSpdy3HeadersList(List<Header> headerBlock) throws IOException { in readSpdy3HeadersList() argument
222 for (int i = 0, size = headerBlock.size(); i < size; i++) { in readSpdy3HeadersList()
223 ByteString name = headerBlock.get(i).name; in readSpdy3HeadersList()
225 String values = headerBlock.get(i).value.utf8(); in readSpdy3HeadersList()
253 public static Response.Builder readHttp2HeadersList(List<Header> headerBlock) throws IOException { in readHttp2HeadersList() argument
257 for (int i = 0, size = headerBlock.size(); i < size; i++) { in readHttp2HeadersList()
258 ByteString name = headerBlock.get(i).name; in readHttp2HeadersList()
260 String value = headerBlock.get(i).value.utf8(); in readHttp2HeadersList()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DHttp2xStream.java220 public static Response.Builder readSpdy3HeadersList(List<Header> headerBlock) throws IOException { in readSpdy3HeadersList() argument
224 for (int i = 0, size = headerBlock.size(); i < size; i++) { in readSpdy3HeadersList()
225 ByteString name = headerBlock.get(i).name; in readSpdy3HeadersList()
227 String values = headerBlock.get(i).value.utf8(); in readSpdy3HeadersList()
255 public static Response.Builder readHttp2HeadersList(List<Header> headerBlock) throws IOException { in readHttp2HeadersList() argument
259 for (int i = 0, size = headerBlock.size(); i < size; i++) { in readHttp2HeadersList()
260 ByteString name = headerBlock.get(i).name; in readHttp2HeadersList()
262 String value = headerBlock.get(i).value.utf8(); in readHttp2HeadersList()
/external/grpc-grpc-java/okhttp/third_party/okhttp/test/java/io/grpc/okhttp/internal/framed/
DHpackTest.java64 List<Header> headerBlock = headerEntries("cookie", new String(value)); in largeHeaderValue() local
66 hpackWriter.writeHeaders(headerBlock); in largeHeaderValue()
72 assertEquals(headerBlock, hpackReader.getAndResetHeaderList()); in largeHeaderValue()
219 List<Header> headerBlock = headerEntries(":path", "/sample/path"); in literalHeaderFieldWithoutIndexingIndexedName() local
226 hpackWriter.writeHeaders(headerBlock); in literalHeaderFieldWithoutIndexingIndexedName()
233 assertEquals(headerBlock, hpackReader.getAndResetHeaderList()); in literalHeaderFieldWithoutIndexingIndexedName()
237 List<Header> headerBlock = headerEntries("custom-key", "custom-header"); in literalHeaderFieldWithoutIndexingNewName() local
246 hpackWriter.writeHeaders(headerBlock); in literalHeaderFieldWithoutIndexingNewName()
253 assertEquals(headerBlock, hpackReader.getAndResetHeaderList()); in literalHeaderFieldWithoutIndexingNewName()

12