Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for PushPromise (0.18 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

              assertThat(requestHeaders).isEqualTo(pushPromise)
            }
          },
        )
      }
    
      /** Headers are compressed, then framed.  */
      @Test fun pushPromiseThenContinuation() {
        val expectedPromisedStreamId = 11
        val pushPromise = largeHeaders()
    
        // Decoding the first header will cross frame boundaries.
        val headerBlock = literalHeaders(pushPromise)
    
        // Write the first headers frame.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      }
    
      @Test @Disabled
      fun pushPromise() {
        val pushPromise = PushPromise("", "", Headers.of(), MockResponse())
        val method: String = pushPromise.method()
        val path: String = pushPromise.path()
        val headers: Headers = pushPromise.headers()
        val response: MockResponse = pushPromise.response()
      }
    
      @Test @Disabled
      fun recordedRequest() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        protocol = Protocol.get("")
      }
    
      @Test
      fun pushPromise() {
        val pushPromise: PushPromise = PushPromise("", "", headersOf(), MockResponse())
        val method: String = pushPromise.method
        val path: String = pushPromise.path
        val headers: Headers = pushPromise.headers
        val response: MockResponse = pushPromise.response
      }
    
      @Test
      fun queueDispatcher() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          request: RecordedRequest,
          promises: List<PushPromise>,
        ) {
          for (pushPromise in promises) {
            val pushedHeaders = mutableListOf<Header>()
            pushedHeaders.add(Header(Header.TARGET_AUTHORITY, url(pushPromise.path).host))
            pushedHeaders.add(Header(Header.TARGET_METHOD, pushPromise.method))
            pushedHeaders.add(Header(Header.TARGET_PATH, pushPromise.path))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

      val throttleBytesPerPeriod: Long
      val throttlePeriodNanos: Long
    
      val socketPolicy: SocketPolicy
    
      val bodyDelayNanos: Long
      val headersDelayNanos: Long
    
      val pushPromises: List<PushPromise>
    
      val settings: Settings
    
      @JvmOverloads
      constructor(
        code: Int = 200,
        headers: Headers = headersOf(),
        body: String = "",
        inTunnel: Boolean = false,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/api/mockwebserver.api

    	public fun toString ()Ljava/lang/String;
    	public final fun trailers (Lokhttp3/Headers;)V
    	public final fun withPush (Lokhttp3/mockwebserver/PushPromise;)Lokhttp3/mockwebserver/MockResponse;
    	public final fun withSettings (Lokhttp3/internal/http2/Settings;)Lokhttp3/mockwebserver/MockResponse;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  7. mockwebserver/api/mockwebserver3.api

    	public final fun addInformationalResponse (Lmockwebserver3/MockResponse;)Lmockwebserver3/MockResponse$Builder;
    	public final fun addPush (Lmockwebserver3/PushPromise;)Lmockwebserver3/MockResponse$Builder;
    	public final fun body (Ljava/lang/String;)Lmockwebserver3/MockResponse$Builder;
    	public final fun body (Lmockwebserver3/MockResponseBody;)Lmockwebserver3/MockResponse$Builder;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

        val headerBlockLength = lengthWithoutPadding(length - 4, flags, padding) // - 4 for readInt().
        val headerBlock = readHeaderBlock(headerBlockLength, padding, flags, streamId)
        handler.pushPromise(streamId, promisedStreamId, headerBlock)
      }
    
      @Throws(IOException::class)
      private fun readPing(
        handler: Handler,
        length: Int,
        flags: Int,
        streamId: Int,
      ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  9. docs/changelogs/upgrading_to_okhttp_4.md

       networkInterceptors, pingIntervalMillis, protocols, proxy, proxyAuthenticator, proxySelector,
       readTimeoutMillis, retryOnConnectionFailure, socketFactory, sslSocketFactory, writeTimeoutMillis
     * **PushPromise**: headers, method, path, response
     * **Request**: body, cacheControl, headers, method, url
     * **Response**: body, cacheControl, cacheResponse, code, handshake, headers, message,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

       * @param promisedStreamId server-initiated stream ID.  Must be an even number.
       * @param requestHeaders minimally includes `:method`, `:scheme`, `:authority`, and `:path`.
       */
      @Throws(IOException::class)
      fun pushPromise(
        streamId: Int,
        promisedStreamId: Int,
        requestHeaders: List<Header>,
      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          hpackWriter.writeHeaders(requestHeaders)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top