Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for createRequestBody (0.31 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

       */
      private var trailers: Headers? = null
    
      /** Returns true if this connection is closed. */
      val isClosed: Boolean
        get() = state == STATE_CLOSED
    
      override fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink {
        return when {
          request.body?.isDuplex() == true -> throw ProtocolException(
            "Duplex connections are not supported for HTTP/1",
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top