Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for onRequest (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/PushObserver.kt

     * Implementations must quickly dispatch callbacks to avoid creating a bottleneck.
     *
     * While [onReset] may occur at any time, the following callbacks are expected in order,
     * correlated by stream ID.
     *
     *  * [onRequest]
     *  * [onHeaders] (unless canceled)
     *  * [onData] (optional sequence of data frames)
     *
     * As a stream ID is scoped to a single HTTP/2 connection, implementations which target multiple
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/FaultTolerantClient.java

            }
    
            List<Exception> exceptionList = null;
            try {
                int count = 0;
                while (count < maxRetryCount) {
                    if (listener != null) {
                        listener.onRequest(this, request, count);
                    }
    
                    try {
                        return client.execute(request);
                    } catch (final MaxLengthExceededException e) {
                        throw e;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/MockStreamHandler.kt

        }
      }
    
      /** Returns once all stream actions complete successfully. */
      fun awaitSuccess() {
        val futureTask =
          results.poll(5, TimeUnit.SECONDS)
            ?: throw AssertionError("no onRequest call received")
        futureTask.get(5, TimeUnit.SECONDS)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/FaultTolerantClientTest.java

            @Override
            public void onRequestStart(final FaultTolerantClient client, final RequestData request) {
                startCount++;
            }
    
            @Override
            public void onRequest(final FaultTolerantClient client, final RequestData request, final int count) {
                requestCount++;
                requestUrl = request.getUrl();
                requestMethod = request.getMethod().toString();
            }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

            writeSynResetLater(streamId, ErrorCode.PROTOCOL_ERROR)
            return
          }
          currentPushRequests.add(streamId)
        }
        pushQueue.execute("$connectionName[$streamId] onRequest") {
          val cancel = pushObserver.onRequest(streamId, requestHeaders)
          ignoreIoExceptions {
            if (cancel) {
              writer.rstStream(streamId, ErrorCode.CANCEL)
              this.withLock {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        @Synchronized fun takeEvent(): Any {
          while (events.isEmpty()) {
            wait()
          }
          return events.removeAt(0)
        }
    
        @Synchronized override fun onRequest(
          streamId: Int,
          requestHeaders: List<Header>,
        ): Boolean {
          assertThat(streamId).isEqualTo(2)
          events.add(requestHeaders)
          notifyAll()
          return false
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

        val request = Request(server1.url("/"))
    
        server1.enqueue(MockResponse(200))
        server2.enqueue(MockResponse(200))
        server2.enqueue(MockResponse(200))
    
        println("\n\nRequest to ${server1.inetSocketAddress}")
        executeSynchronously(request)
          .assertSuccessful()
          .assertCode(200)
    
        println("server1.requestCount ${server1.requestCount}")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. internal/grid/msg_string.go

    	_ = x[OpDisconnectClientMux-7]
    	_ = x[OpDisconnectServerMux-8]
    	_ = x[OpMuxClientMsg-9]
    	_ = x[OpMuxServerMsg-10]
    	_ = x[OpUnblockSrvMux-11]
    	_ = x[OpUnblockClMux-12]
    	_ = x[OpAckMux-13]
    	_ = x[OpRequest-14]
    	_ = x[OpResponse-15]
    	_ = x[OpDisconnect-16]
    	_ = x[OpMerged-17]
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. internal/grid/msg.go

    	// Only Stateful streams has flow control.
    	OpUnblockClMux
    
    	// OpAckMux acknowledges a mux was created.
    	OpAckMux
    
    	// OpRequest is a single request + response.
    	// MuxID is returned in response.
    	OpRequest
    
    	// OpResponse is a response to a single request.
    	// FlagPayloadIsErr is used to signify that the payload is a string error converted to byte slice.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CacheTest.kt

        val frResponse = client.newCall(frRequest).execute()
        assertThat(frResponse.body.string()).isEqualTo("A")
        val enRequest =
          Request.Builder()
            .url(url)
            .header("Accept-Language", "en-US")
            .build()
        val enResponse = client.newCall(enRequest).execute()
        assertThat(enResponse.body.string()).isEqualTo("B")
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
Back to top