Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for routes (0.14 sec)

  1. fastapi/routing.py

            app = FastAPI()
            internal_router = APIRouter()
            users_router = APIRouter()
    
            @users_router.get("/users/")
            def read_users():
                return [{"name": "Rick"}, {"name": "Morty"}]
    
            internal_router.include_router(users_router)
            app.include_router(internal_router)
            ```
            """
            if prefix:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  2. fastapi/applications.py

            ## Example
    
            ```python
            from fastapi import FastAPI
    
            from .users import users_router
    
            app = FastAPI()
    
            app.include_router(users_router)
            ```
            """
            self.router.include_router(
                router,
                prefix=prefix,
                tags=tags,
                dependencies=dependencies,
                responses=responses,
    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)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

        assertFailsWith<InterruptedIOException> {
          // If this succeeds, too many requests were made.
          client.newCall(request).execute()
        }
      }
    
      /**
       * Make a request with two routes. The first route will time out because it's connecting to a
       * special address that never connects. The automatic retry will succeed.
       */
      @Test
      fun connectTimeoutsAttemptsAlternateRoute() {
    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)
  4. cmd/admin-handlers.go

    	hip, errCode := extractHealInitParams(mux.Vars(r), r.Form, r.Body)
    	if errCode != ErrNone {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(errCode), r.URL)
    		return
    	}
    
    	// Analyze the heal token and route the request accordingly
    	token, success := proxyRequestByToken(ctx, w, r, hip.clientToken)
    	if success {
    		return
    	}
    	hip.clientToken = token
    	// if request was not successful, try this server locally if token
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
Back to top