Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for headersBuilder (0.07 sec)

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

    class MockResponse : Cloneable {
      @set:JvmName("status")
      var status: String = ""
    
      private var headersBuilder = Headers.Builder()
      private var trailersBuilder = Headers.Builder()
    
      @set:JvmName("headers")
      var headers: Headers
        get() = headersBuilder.build()
        set(value) {
          this.headersBuilder = value.newBuilder()
        }
    
      @set:JvmName("trailers")
      var trailers: Headers
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

          var statusLine: StatusLine? = null
          val headersBuilder = Headers.Builder()
          for (i in 0 until headerBlock.size) {
            val name = headerBlock.name(i)
            val value = headerBlock.value(i)
            if (name == RESPONSE_STATUS_UTF8) {
              statusLine = StatusLine.parse("HTTP/1.1 $value")
            } else if (name !in HTTP_2_SKIPPED_RESPONSE_HEADERS) {
              headersBuilder.addLenient(name, value)
            }
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top