Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for pushPromise (0.11 sec)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/PushPromise.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.mockwebserver
    
    import okhttp3.Headers
    
    class PushPromise(
      @get:JvmName("method") val method: String,
      @get:JvmName("path") val path: String,
      @get:JvmName("headers") val headers: Headers,
      @get:JvmName("response") val response: MockResponse,
    ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/PushPromise.kt

     * limitations under the License.
     */
    package mockwebserver3
    
    import okhttp3.ExperimentalOkHttpApi
    import okhttp3.Headers
    
    /** An HTTP request initiated by the server. */
    @ExperimentalOkHttpApi
    class PushPromise(
      val method: String,
      val path: String,
      val headers: Headers,
      val response: MockResponse,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 874 bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

      result.bodyDelay(getBodyDelay(MILLISECONDS), MILLISECONDS)
      result.headersDelay(getHeadersDelay(MILLISECONDS), MILLISECONDS)
      return result.build()
    }
    
    private fun PushPromise.wrap(): mockwebserver3.PushPromise {
      return mockwebserver3.PushPromise(
        method = method,
        path = path,
        headers = headers,
        response = response.wrap(),
      )
    }
    
    internal fun mockwebserver3.RecordedRequest.unwrap(): RecordedRequest {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        mockWebServer.close()
      }
    
      @Test @Ignore
      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 @Ignore
      fun queueDispatcher() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

      private var headersDelayAmount = 0L
      private var headersDelayUnit = TimeUnit.MILLISECONDS
    
      private var promises = mutableListOf<PushPromise>()
      var settings: Settings = Settings()
        private set
      var webSocketListener: WebSocketListener? = null
        private set
    
      val pushPromises: List<PushPromise>
        get() = promises
    
      init {
        setResponseCode(200)
        setHeader("Content-Length", 0L)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/BaseTestHandler.kt

      ) {
        fail("")
      }
    
      override fun priority(
        streamId: Int,
        streamDependency: Int,
        weight: Int,
        exclusive: Boolean,
      ) {
        fail("")
      }
    
      override fun pushPromise(
        streamId: Int,
        associatedStreamId: Int,
        headerBlock: List<Header>,
      ) {
        fail("")
      }
    
      override fun alternateService(
        streamId: Int,
        origin: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

        override fun priority(
          streamId: Int,
          streamDependency: Int,
          weight: Int,
          exclusive: Boolean,
        ) {
          throw UnsupportedOperationException()
        }
    
        override fun pushPromise(
          streamId: Int,
          associatedStreamId: Int,
          headerBlock: List<Header>,
        ) {
          this.type = Http2.TYPE_PUSH_PROMISE
          this.streamId = streamId
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

      const val FLAG_COMPRESSED = 0x20 // Used for data.
    
      /** Lookup table for valid frame types. */
      private val FRAME_NAMES =
        arrayOf(
          "DATA", "HEADERS", "PRIORITY", "RST_STREAM", "SETTINGS", "PUSH_PROMISE", "PING", "GOAWAY",
          "WINDOW_UPDATE", "CONTINUATION",
        )
    
      /**
       * Lookup table for valid flags for DATA, HEADERS, CONTINUATION. Invalid combinations are
       * represented in binary.
       */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt

        const val DEFAULT_INITIAL_WINDOW_SIZE = 65535
    
        /** HTTP/2: Size in bytes of the table used to decode the sender's header blocks. */
        const val HEADER_TABLE_SIZE = 1
    
        /** HTTP/2: The peer must not send a PUSH_PROMISE frame when this is 0. */
        const val ENABLE_PUSH = 2
    
        /** Sender's maximum number of concurrent streams. */
        const val MAX_CONCURRENT_STREAMS = 4
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

          .isEqualTo("<< 0x00000003 10000 CONTINUATION  END_HEADERS")
        assertThat(frameLog(true, 4, 10000, TYPE_PUSH_PROMISE, 0x4))
          .isEqualTo("<< 0x00000004 10000 PUSH_PROMISE  END_PUSH_PROMISE")
      }
    
      @Test
      fun flagOverlapOn0x20() {
        assertThat(frameLog(true, 3, 10000, TYPE_HEADERS, 0x20))
          .isEqualTo("<< 0x00000003 10000 HEADERS       PRIORITY")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top