Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for responseHeadersStart (0.13 sec)

  1. okhttp/src/test/java/okhttp3/EventListenerTest.kt

    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

            if ("100-continue".equals(request.header("Expect"), ignoreCase = true)) {
              exchange.flushRequest()
              responseBuilder = exchange.readResponseHeaders(expectContinue = true)
              exchange.responseHeadersStart()
              invokeStartEvent = false
            }
            if (responseBuilder == null) {
              if (requestBody.isDuplex()) {
                // Prepare a duplex body so that the application can send a request body later.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

      }
    
      override fun requestFailed(
        call: Call,
        ioe: IOException,
      ) {
        logWithTime("requestFailed: $ioe")
      }
    
      override fun responseHeadersStart(call: Call) {
        logWithTime("responseHeadersStart")
      }
    
      override fun responseHeadersEnd(
        call: Call,
        response: Response,
      ) {
        logWithTime("responseHeadersEnd: $response")
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

        call: Call,
        ioe: IOException,
      ) {
        logWithTime("requestFailed: $ioe")
    
        delegate.requestFailed(call, ioe)
      }
    
      override fun responseHeadersStart(call: Call) {
        logWithTime("responseHeadersStart")
    
        delegate.responseHeadersStart(call)
      }
    
      override fun responseHeadersEnd(
        call: Call,
        response: Response,
      ) {
        logWithTime("responseHeadersEnd: $response")
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

        try {
          codec.finishRequest()
        } catch (e: IOException) {
          eventListener.requestFailed(call, e)
          trackFailure(e)
          throw e
        }
      }
    
      fun responseHeadersStart() {
        eventListener.responseHeadersStart(call)
      }
    
      @Throws(IOException::class)
      fun readResponseHeaders(expectContinue: Boolean): Response.Builder? {
        try {
          val result = codec.readResponseHeaders(expectContinue)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/DuplexTest.kt

    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

            ),
          )
          .assertLogMatch(Regex("""requestHeadersStart"""))
          .assertLogMatch(Regex("""requestHeadersEnd"""))
          .assertLogMatch(Regex("""responseHeadersStart"""))
          .assertLogMatch(Regex("""responseHeadersEnd: Response\{protocol=http/1\.1, code=200, message=OK, url=$url\}"""))
          .assertLogMatch(Regex("""responseBodyStart"""))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

      override fun requestFailed(
        call: Call,
        ioe: IOException,
      ) = logEvent(RequestFailed(System.nanoTime(), call, ioe))
    
      override fun responseHeadersStart(call: Call) = logEvent(ResponseHeadersStart(System.nanoTime(), call))
    
      override fun responseHeadersEnd(
        call: Call,
        response: Response,
      ) = logEvent(ResponseHeadersEnd(System.nanoTime(), call, response.headers.byteCount()))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       * This was misleading for tracing because it was too early.
       */
      open fun responseHeadersStart(call: Call) {
      }
    
      /**
       * Invoked immediately after receiving response headers.
       *
       * This method is always invoked after [responseHeadersStart].
       *
       * @param response the response received over the network. It is an error to access the body of
       *     this response.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

      }
    
      data class ResponseHeadersStart(
        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent()
    
      data class ResponseHeadersEnd(
        override val timestampNs: Long,
        override val call: Call,
        val headerLength: Long,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is ResponseHeadersStart && call == event.call
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top