Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for get_Async (0.14 sec)

  1. tests/test_dependency_contextmanager.py

        try:
            yield state
        finally:
            state["context_b"] = f"finished b with a: {state['context_a']}"
    
    
    @app.get("/async")
    async def get_async(state: str = Depends(asyncgen_state)):
        return state
    
    
    @app.get("/sync")
    async def get_sync(state: str = Depends(generator_state)):
        return state
    
    
    @app.get("/async_raise")
    async def get_async_raise(state: str = Depends(asyncgen_state_try)):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        bodies.add(firstResponse.body)
        bodies.add(secondResponse.body)
        assertThat(bodies).contains("abc")
        assertThat(bodies).contains("def")
      }
    
      @Test
      fun get_Async() {
        server.enqueue(
          MockResponse(
            headers = headersOf("Content-Type", "text/plain"),
            body = "abc",
          ),
        )
        val request =
          Request.Builder()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  3. cluster/gce/windows/common.psm1

          $httpClient.DefaultRequestHeaders.Add("Authorization", "Bearer $(Get-Credentials)")
        }
    
        # Attempt to download the file
        $httpResponseMessage = $httpClient.GetAsync([System.Uri]::new($Url))
        $httpResponseMessage.Wait()
        if (-not $httpResponseMessage.IsCanceled) {
          # Check if the request was successful.
          #
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 19 14:47:38 UTC 2022
    - 25.4K bytes
    - Viewed (0)
Back to top