Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ResponseHeadersEnd (0.49 sec)

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

        if (responseHeaderLength != null) {
          val responseHeadersEnd: ResponseHeadersEnd =
            listener.removeUpToEvent<ResponseHeadersEnd>()
          MatcherAssert.assertThat(
            "response header length",
            responseHeadersEnd.headerLength,
            responseHeaderLength,
          )
        } else {
          assertThat(listener.recordedEventTypes())
            .doesNotContain("ResponseHeadersEnd")
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

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

        logWithTime("responseHeadersStart")
    
        delegate.responseHeadersStart(call)
      }
    
      override fun responseHeadersEnd(
        call: Call,
        response: Response,
      ) {
        logWithTime("responseHeadersEnd: $response")
    
        delegate.responseHeadersEnd(call, response)
      }
    
      override fun responseBodyStart(call: Call) {
        logWithTime("responseBodyStart")
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. android-test/README.md

    2. Turn on logs with logcat
    
    ```
    $ adb logcat '*:E' OkHttp:D Http2:D TestRunner:D TaskRunner:D OkHttpTest:D GnssHAL_GnssInterface:F DeviceStateChecker:F memtrack:F
    ...
    01-01 12:53:32.811 10999 11089 D OkHttp  : [49 ms] responseHeadersEnd: Response{protocol=h2, code=200, message=, url=https://1.1.1.1/dns-query?dns=AAABAAABAAAAAAAAA3d3dwhmYWNlYm9vawNjb20AABwAAQ}
    01-01 12:53:32.811 10999 11089 D OkHttp  : [49 ms] responseBodyStart
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Feb 14 08:26:50 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/DuplexTest.kt

    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. 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"""))
          .assertLogMatch(Regex("""responseBodyEnd: byteCount=6"""))
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

      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()))
    
      override fun responseBodyStart(call: Call) = logEvent(ResponseBodyStart(System.nanoTime(), call))
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

          return result
        } catch (e: IOException) {
          eventListener.responseFailed(call, e)
          trackFailure(e)
          throw e
        }
      }
    
      fun responseHeadersEnd(response: Response) {
        eventListener.responseHeadersEnd(call, response)
      }
    
      @Throws(IOException::class)
      fun openResponseBody(response: Response): ResponseBody {
        try {
          val contentType = response.header("Content-Type")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

          "DnsStart",
          "DnsEnd",
          "ConnectStart",
          "ConnectEnd",
          "ConnectionAcquired",
          "RequestHeadersStart",
          "RequestHeadersEnd",
          "ResponseHeadersStart",
          "ResponseHeadersEnd",
          "ResponseBodyStart",
          "ResponseBodyEnd",
          "ConnectionReleased",
          "CallEnd",
        )
      }
    
      private fun newEventSource(accept: String? = null): EventSource {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

                .sentRequestAtMillis(sentRequestMillis)
                .receivedResponseAtMillis(System.currentTimeMillis())
                .build()
            code = response.code
          }
    
          exchange.responseHeadersEnd(response)
    
          response =
            if (forWebSocket && code == 101) {
              // Connection is upgrading, but we need to ensure interceptors see a non-null response body.
              response.stripBody()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top