Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 391 for Response (0.43 sec)

  1. src/main/java/jcifs/util/transport/Transport.java

                                for ( Response response : this.response_map.values() ) {
                                    response.error();
                                }
                            }
                            throw new IOException("end of stream");
                        }
    
                        Response response = this.response_map.get(key);
                        if ( response == null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      private fun writeHttpResponse(
        socket: Socket,
        sink: BufferedSink,
        response: MockResponse,
      ) {
        sleepNanos(response.headersDelayNanos)
        sink.writeUtf8(response.status)
        sink.writeUtf8("\r\n")
    
        writeHeaders(sink, response.headers)
    
        val body = response.body ?: return
        sleepNanos(response.bodyDelayNanos)
        val responseBodySink =
          sink.withThrottlingAndSocketPolicy(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_security/test_tutorial005_an_py310.py

        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    @needs_py310
    def test_no_token(client: TestClient):
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    @needs_py310
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/files/": {
                    "post": {
                        "responses": {
                            "200": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  5. tests/test_query.py

    
    def test_query_param():
        response = client.get("/query/param")
        assert response.status_code == 200
        assert response.json() == "foo bar"
    
    
    def test_query_param_query_50():
        response = client.get("/query/param?query=50")
        assert response.status_code == 200
        assert response.json() == "foo bar 50"
    
    
    def test_query_param_required():
        response = client.get("/query/param-required")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

        /** Don't accept an unvalidated cached response. */
        fun noCache() = commonNoCache()
    
        /** Don't store the server's response in any cache. */
        fun noStore() = commonNoStore()
    
        /**
         * Only accept the response if it is in the cache. If the response isn't cached, a `504
         * Unsatisfiable Request` response will be returned.
         */
        fun onlyIfCached() = commonOnlyIfCached()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware.py

        test_user = {"email": "******@****.***", "password": "secret"}
        response = client.post("/users/", json=test_user)
        assert response.status_code == 200, response.text
        data = response.json()
        assert test_user["email"] == data["email"]
        assert "id" in data
        response = client.post("/users/", json=test_user)
        assert response.status_code == 400, response.text
    
    
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                    response = (NameServicePacket)responseTable.get( new Integer( nameTrnId ));
                    if( response == null || response.received ) {
                        continue;
                    }
                    synchronized( response ) {
                        response.readWireFormat( rcv_buf, 0 );
                        response.received = true;
    
                        if( log.level > 3 ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 17.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cache.kt

          }
        }
    
        constructor(response: Response) {
          this.url = response.request.url
          this.varyHeaders = response.varyHeaders()
          this.requestMethod = response.request.method
          this.protocol = response.protocol
          this.code = response.code
          this.message = response.message
          this.responseHeaders = response.headers
          this.handshake = response.handshake
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

        cacheRequest: CacheRequest?,
        response: Response,
      ): Response {
        // Some apps return a null body; for compatibility we treat that like a null cache request.
        if (cacheRequest == null) return response
        val cacheBodyUnbuffered = cacheRequest.body()
    
        val source = response.body.source()
        val cacheBody = cacheBodyUnbuffered.buffer()
    
        val cacheWritingSource =
          object : Source {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top