Home
last modified time | relevance | path

Searched refs:pushPromise (Results 1 – 21 of 21) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverHttp2Test.java36 PushPromise pushPromise = new PushPromise("GET", "/foo/bar", Headers.of("foo", "bar"), in serverSendsPushPromise_GET() local
41 .withPush(pushPromise); in serverSendsPushPromise_GET()
60 PushPromise pushPromise = new PushPromise("HEAD", "/foo/bar", Headers.of("foo", "bar"), in serverSendsPushPromise_HEAD() local
65 .withPush(pushPromise); in serverSendsPushPromise_HEAD()
DHttp2Test.java152 @Test public void pushPromise() throws IOException { in pushPromise() method in Http2Test
155 final List<Header> pushPromise = Arrays.asList( in pushPromise() local
163 Buffer headerBytes = literalHeaders(pushPromise); in pushPromise()
171 assertEquals(frame, sendPushPromiseFrames(expectedPromisedStreamId, pushPromise)); in pushPromise()
175 public void pushPromise(int streamId, int promisedStreamId, List<Header> headerBlock) { in pushPromise()
178 assertEquals(pushPromise, headerBlock); in pushPromise()
186 final List<Header> pushPromise = largeHeaders(); in pushPromiseThenContinuation() local
189 Buffer headerBlock = literalHeaders(pushPromise); in pushPromiseThenContinuation()
206 assertEquals(frame, sendPushPromiseFrames(expectedPromisedStreamId, pushPromise)); in pushPromiseThenContinuation()
211 public void pushPromise(int streamId, int promisedStreamId, List<Header> headerBlock) { in pushPromiseThenContinuation()
[all …]
DBaseTestHandler.java67 public void pushPromise(int streamId, int associatedStreamId, List<Header> headerBlock) { in pushPromise() method in BaseTestHandler
DHttp2ConnectionTest.java375 peer.sendFrame().pushPromise(3, 2, expectedRequestHeaders);
404 peer.sendFrame().pushPromise(3, 2, headerEntries("a", "android"));
406 peer.sendFrame().pushPromise(3, 2, headerEntries("b", "banana"));
425 peer.sendFrame().pushPromise(3, 2, Arrays.asList(
DMockSpdyPeer.java318 public void pushPromise(int streamId, int associatedStreamId, List<Header> headerBlock) { in pushPromise() method in MockSpdyPeer.InFrame
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java958 for (PushPromise pushPromise : promises) {
962 : Header.TARGET_AUTHORITY, url(pushPromise.getPath()).host()));
963 pushedHeaders.add(new Header(Header.TARGET_METHOD, pushPromise.getMethod()));
964 pushedHeaders.add(new Header(Header.TARGET_PATH, pushPromise.getPath()));
965 Headers pushPromiseHeaders = pushPromise.getHeaders();
969 String requestLine = pushPromise.getMethod() + ' ' + pushPromise.getPath() + " HTTP/1.1";
971 requestQueue.add(new RecordedRequest(requestLine, pushPromise.getHeaders(), chunkSizes, 0,
973 boolean hasBody = pushPromise.getResponse().getBody() != null;
976 writeResponse(pushedStream, pushPromise.getResponse());
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DAsyncFrameWriter.java91 public void pushPromise(final int streamId, final int promisedStreamId, in pushPromise() method in AsyncFrameWriter
96 frameWriter.pushPromise(streamId, promisedStreamId, requestHeaders); in pushPromise()
DOkHttpClientTransport.java1157 public void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) in pushPromise() method in OkHttpClientTransport.ClientFrameHandler
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DFrameWriter.java46 void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) in pushPromise() method
DFrameReader.java112 void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) in pushPromise() method
DHttp2.java319 handler.pushPromise(streamId, promisedStreamId, headerBlock); in readPushPromise()
425 @Override public synchronized void pushPromise(int streamId, int promisedStreamId, in pushPromise() method in Http2.Writer
DFramedConnection.java278 frameWriter.pushPromise(associatedStreamId, streamId, requestHeaders); in newStream()
817 public void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) { in pushPromise() method in FramedConnection.Reader
DSpdy3.java309 public void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) in pushPromise() method in Spdy3.Writer
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/
DFrameWriter.java50 void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) in pushPromise() method
DFrameReader.java116 …void pushPromise(int streamId, int promisedStreamId, List<io.grpc.okhttp.internal.framed.Header> r… in pushPromise() method
DHttp2.java325 handler.pushPromise(streamId, promisedStreamId, headerBlock); in readPushPromise()
431 @Override public synchronized void pushPromise(int streamId, int promisedStreamId, in pushPromise() method in Http2.Writer
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/
DFrameReader.java114 void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) in pushPromise() method
DFrameWriter.java48 void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) in pushPromise() method
DHttp2.java321 handler.pushPromise(streamId, promisedStreamId, headerBlock); in readPushPromise()
427 @Override public synchronized void pushPromise(int streamId, int promisedStreamId, in pushPromise() method in Http2.Writer
DFramedConnection.java280 frameWriter.pushPromise(associatedStreamId, streamId, requestHeaders); in newStream()
822 public void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) { in pushPromise() method in FramedConnection.Reader
DSpdy3.java311 public void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) in pushPromise() method in Spdy3.Writer