Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for writeRequestHeaders (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

        get() = finder.routePlanner.address.url.host != codec.carrier.route.address.url.host
    
      @Throws(IOException::class)
      fun writeRequestHeaders(request: Request) {
        try {
          eventListener.requestHeadersStart(call)
          codec.writeRequestHeaders(request)
          eventListener.requestHeadersEnd(call, request)
        } catch (e: IOException) {
          eventListener.requestFailed(call, e)
          trackFailure(e)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

      fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink
    
      /** This should update the HTTP engine's sentRequestMillis field. */
      @Throws(IOException::class)
      fun writeRequestHeaders(request: Request)
    
      /** Flush the request to the underlying socket. */
      @Throws(IOException::class)
      fun flushRequest()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

        val sentRequestMillis = System.currentTimeMillis()
    
        var invokeStartEvent = true
        var responseBuilder: Response.Builder? = null
        var sendRequestException: IOException? = null
        try {
          exchange.writeRequestHeaders(request)
    
          if (HttpMethod.permitsRequestBody(request.method) && requestBody != null) {
            // If there's a "Expect: 100-continue" header on the request, wait for a "HTTP/1.1 100
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

      @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
    
        val hasRequestBody = request.body != null
        val requestHeaders = http2HeadersList(request)
        stream = http2Connection.newStream(requestHeaders, hasRequestBody)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

       * has been written to and closed. This ensures that the `Content-Length` header field receives
       * the proper value.
       */
      override fun writeRequestHeaders(request: Request) {
        val requestLine = RequestLine.get(request, carrier.route.proxy.type())
        writeRequest(request.headers, requestLine)
      }
    
      override fun reportedContentLength(response: Response): Long {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/connection/Exchange;->readResponseHeaders(Z)Lokhttp3/Response$Builder;
    HSPLokhttp3/internal/connection/Exchange;->responseHeadersStart()V
    HSPLokhttp3/internal/connection/Exchange;->writeRequestHeaders(Lokhttp3/Request;)V
    HSPLokhttp3/internal/connection/RealCall$AsyncCall;-><init>(Lokhttp3/internal/connection/RealCall;Lokhttp3/Callback;)V
    HSPLokhttp3/internal/connection/RealCall$AsyncCall;->getHost()Ljava/lang/String;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top