Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for RequestBodyStart (0.13 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

      }
    
      override fun requestHeadersEnd(
        call: Call,
        request: Request,
      ) {
        logWithTime("requestHeadersEnd")
      }
    
      override fun requestBodyStart(call: Call) {
        logWithTime("requestBodyStart")
      }
    
      override fun requestBodyEnd(
        call: Call,
        byteCount: Long,
      ) {
        logWithTime("requestBodyEnd: byteCount=$byteCount")
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

        call: Call,
        request: Request,
      ) {
        logWithTime("requestHeadersEnd")
    
        delegate.requestHeadersEnd(call, request)
      }
    
      override fun requestBodyStart(call: Call) {
        logWithTime("requestBodyStart")
    
        delegate.requestBodyStart(call)
      }
    
      override fun requestBodyEnd(
        call: Call,
        byteCount: Long,
      ) {
        logWithTime("requestBodyEnd: byteCount=$byteCount")
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

      override fun requestHeadersEnd(
        call: Call,
        request: Request,
      ) = logEvent(RequestHeadersEnd(System.nanoTime(), call, request.headers.byteCount()))
    
      override fun requestBodyStart(call: Call) = logEvent(RequestBodyStart(System.nanoTime(), call))
    
      override fun requestBodyEnd(
        call: Call,
        byteCount: Long,
      ) = logEvent(RequestBodyEnd(System.nanoTime(), call, byteCount))
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

        }
    
        @Override public void requestHeadersEnd(Call call, Request request) {
          printEvent("requestHeadersEnd");
        }
    
        @Override public void requestBodyStart(Call call) {
          printEvent("requestBodyStart");
        }
    
        @Override public void requestBodyEnd(Call call, long byteCount) {
          printEvent("requestBodyEnd");
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 5.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       * [Call.request] is a redirect to a different address.
       */
      open fun requestBodyStart(call: Call) {
      }
    
      /**
       * Invoked immediately after sending a request body.
       *
       * This method is always invoked after [requestBodyStart].
       */
      open fun requestBodyEnd(
        call: Call,
        byteCount: Long,
      ) {
      }
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

        }
    
        @Override public void requestHeadersEnd(Call call, Request request) {
          printEvent("requestHeadersEnd");
        }
    
        @Override public void requestBodyStart(Call call) {
          printEvent("requestBodyStart");
        }
    
        @Override public void requestBodyEnd(Call call, long byteCount) {
          printEvent("requestBodyEnd");
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

      }
    
      data class RequestBodyStart(
        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent()
    
      data class RequestBodyEnd(
        override val timestampNs: Long,
        override val call: Call,
        val bytesWritten: Long,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is RequestBodyStart && 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)
  8. 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)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

      @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)
      }
    
      @Throws(IOException::class)
      fun flushRequest() {
        try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/EventListenerTest.kt

    import okhttp3.CallEvent.ConnectStart
    import okhttp3.CallEvent.ConnectionAcquired
    import okhttp3.CallEvent.DnsEnd
    import okhttp3.CallEvent.DnsStart
    import okhttp3.CallEvent.RequestBodyEnd
    import okhttp3.CallEvent.RequestBodyStart
    import okhttp3.CallEvent.RequestHeadersEnd
    import okhttp3.CallEvent.RequestHeadersStart
    import okhttp3.CallEvent.ResponseBodyEnd
    import okhttp3.CallEvent.ResponseBodyStart
    import okhttp3.CallEvent.ResponseFailed
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
Back to top