Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for createRequestBody (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

                exchange.flushRequest()
                val bufferedRequestBody = exchange.createRequestBody(request, true).buffer()
                requestBody.writeTo(bufferedRequestBody)
              } else {
                // Write the request body if the "Expect: 100-continue" expectation was met.
                val bufferedRequestBody = exchange.createRequestBody(request, false).buffer()
                requestBody.writeTo(bufferedRequestBody)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.3K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

          trackFailure(e)
          throw e
        }
      }
    
      @Throws(IOException::class)
      fun createRequestBody(
        request: Request,
        duplex: Boolean,
      ): Sink {
        this.isDuplex = duplex
        val contentLength = request.body!!.contentLength()
        eventListener.requestBodyStart(call)
        val rawRequestBody = codec.createRequestBody(request, contentLength)
        return RequestBodySink(rawRequestBody, contentLength)
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

    interface ExchangeCodec {
      /** The connection or CONNECT tunnel that owns this codec. */
      val carrier: Carrier
    
      /** Returns an output stream where the request body can be streamed. */
      @Throws(IOException::class)
      fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink
    
      /** This should update the HTTP engine's sentRequestMillis field. */
      @Throws(IOException::class)
      fun writeRequestHeaders(request: Request)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        if (Protocol.H2_PRIOR_KNOWLEDGE in client.protocols) {
          Protocol.H2_PRIOR_KNOWLEDGE
        } else {
          Protocol.HTTP_2
        }
    
      @Volatile
      private var canceled = false
    
      override fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink {
        return stream!!.getSink()
      }
    
      override fun writeRequestHeaders(request: Request) {
        if (stream != null) return
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  5. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  6. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/connection/Exchange;->bodyComplete(JZZLjava/io/IOException;)Ljava/io/IOException;
    HSPLokhttp3/internal/connection/Exchange;->createRequestBody(Lokhttp3/Request;Z)Lokio/Sink;
    HSPLokhttp3/internal/connection/Exchange;->getConnection$okhttp()Lokhttp3/internal/connection/RealConnection;
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top