Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for read_responses (0.08 sec)

  1. tests/test_computed_fields.py

        @app.get("/")
        def read_root() -> Rectangle:
            return Rectangle(width=3, length=4)
    
        @app.get("/responses", responses={200: {"model": Rectangle}})
        def read_responses() -> Rectangle:
            return Rectangle(width=3, length=4)
    
        client = TestClient(app)
        return client
    
    
    @pytest.mark.parametrize("path", ["/", "/responses"])
    @needs_pydanticv2
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

      }
    
      private fun processResponse(
        response: Response,
        hostname: String,
        results: MutableList<InetAddress>,
        failures: MutableList<Exception>,
      ) {
        try {
          val addresses = readResponse(hostname, response)
          synchronized(results) {
            results.addAll(addresses)
          }
        } catch (e: Exception) {
          synchronized(failures) {
            failures.add(e)
          }
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top