Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for dispatcher (0.23 sec)

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

       */
      @Test
      fun canceledBeforeIOSignalsOnFailure() {
        // Force requests to be executed serially.
        val dispatcher = Dispatcher(client.dispatcher.executorService)
        dispatcher.maxRequests = 1
        client =
          client.newBuilder()
            .dispatcher(dispatcher)
            .build()
        val requestA = Request(server.url("/a"))
        val requestB = Request(server.url("/b"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  2. fastapi/applications.py

                return response
            ```
            """
    
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.add_middleware(BaseHTTPMiddleware, dispatch=func)
                return func
    
            return decorator
    
        def exception_handler(
            self,
            exc_class_or_status_code: Annotated[
                Union[int, Type[Exception]],
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
Back to top