Home
last modified time | relevance | path

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

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHttpOverHttp2Test.java35 PushPromise pushPromise = new PushPromise("GET", "/foo/bar", Headers.of("foo", "bar"), in serverSendsPushPromise_GET() local
40 .withPush(pushPromise); in serverSendsPushPromise_GET()
59 PushPromise pushPromise = new PushPromise("HEAD", "/foo/bar", Headers.of("foo", "bar"), in serverSendsPushPromise_HEAD() local
64 .withPush(pushPromise); in serverSendsPushPromise_HEAD()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
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.java363 peer.sendFrame().pushPromise(3, 2, expectedRequestHeaders);
390 peer.sendFrame().pushPromise(3, 2, headerEntries("a", "android"));
392 peer.sendFrame().pushPromise(3, 2, headerEntries("b", "banana"));
409 peer.sendFrame().pushPromise(3, 2, Arrays.asList(
DMockSpdyPeer.java309 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.java940 for (PushPromise pushPromise : promises) {
944 : Header.TARGET_AUTHORITY, url(pushPromise.getPath()).host()));
945 pushedHeaders.add(new Header(Header.TARGET_METHOD, pushPromise.getMethod()));
946 pushedHeaders.add(new Header(Header.TARGET_PATH, pushPromise.getPath()));
947 Headers pushPromiseHeaders = pushPromise.getHeaders();
951 String requestLine = pushPromise.getMethod() + ' ' + pushPromise.getPath() + " HTTP/1.1";
953 requestQueue.add(new RecordedRequest(requestLine, pushPromise.getHeaders(), chunkSizes, 0,
955 boolean hasBody = pushPromise.getResponse().getBody() != null;
958 writeResponse(pushedStream, pushPromise.getResponse());
/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
DFramedConnection.java274 frameWriter.pushPromise(associatedStreamId, streamId, requestHeaders); in newStream()
785 public void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) { in pushPromise() method in FramedConnection.Reader
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
DSpdy3.java309 public void pushPromise(int streamId, int promisedStreamId, List<Header> requestHeaders) in pushPromise() method in Spdy3.Writer
/external/robolectric/v3/runtime/
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...