Search Options

Results per page
Sort
Preferred Languages
Advance

Results 841 - 850 of 1,560 for respond (0.06 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            "Mock Response",
          )
        for (i in 0..599) {
          val response = MockResponse().setResponseCode(i)
          val expectedReason = reasons[i / 100]
          assertThat(response.status).isEqualTo("HTTP/1.1 $i $expectedReason")
          assertThat(headersToList(response)).containsExactly("Content-Length: 0")
        }
      }
    
      @Test
      fun setStatusControlsWholeStatusLine() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/middleware.md

    ✍ πŸ› οΈ πŸ‘† βš™οΈ πŸ‘¨β€πŸŽ¨ `@app.middleware("http")` πŸ”› πŸ” πŸ”’.
    
    πŸ› οΈ πŸ”’ πŸ“¨:
    
    *  `request`.
    * πŸ”’ `call_next` πŸ‘ˆ πŸ”œ πŸ“¨ `request` πŸ”’.
        * πŸ‘‰ πŸ”’ πŸ”œ πŸšΆβ€β™€οΈ `request` πŸ”— *➑ πŸ› οΈ*.
        * ‴️ ⚫️ πŸ“¨ `response` πŸ— πŸ”— *➑ πŸ› οΈ*.
    * πŸ‘† πŸ’ͺ ‴️ πŸ”€ πŸŒ… `response` ⏭ πŸ›¬ ⚫️.
    
    ```Python hl_lines="8-9  11  14"
    {!../../docs_src/middleware/tutorial001.py!}
    ```
    
    /// tip
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Response#error()
         */
        @Override
        public final void error () {
            this.error = true;
            synchronized ( this ) {
                notifyAll();
            }
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Response#clearReceived()
         */
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 7.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbTree.java

        }
        void send( ServerMessageBlock request,
                                ServerMessageBlock response ) throws SmbException {
    synchronized (session.transport()) {
            if( response != null ) {
                response.received = false;
            }
            treeConnect( request, response );
            if( request == null || (response != null && response.received )) {
                return;
            }
            if( service.equals( "A:" ) == false ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8K bytes
    - Viewed (0)
  5. istioctl/pkg/xds/client.go

    	err = adscConn.Run()
    	if err != nil {
    		return nil, fmt.Errorf("ADSC: failed running %v", err)
    	}
    
    	err = adscConn.Send(dr)
    	if err != nil {
    		return nil, err
    	}
    	response, err := adscConn.WaitVersion(opts.Timeout, dr.TypeUrl, "")
    	return response, err
    }
    
    // DialOptions constructs gRPC dial options from command line configuration
    func DialOptions(opts clioptions.CentralControlPlaneOptions,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_websockets/test_tutorial003_py39.py

    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
    
        return client
    
    
    @needs_py39
    def test_get(client: TestClient, html: str):
        response = client.get("/")
        assert response.text == html
    
    
    @needs_py39
    def test_websocket_handle_disconnection(client: TestClient):
        with client.websocket_connect("/ws/1234") as connection, client.websocket_connect(
            "/ws/5678"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial004_py310.py

        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    @needs_py310
    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",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/SmbNegotiation.java

            this.response = response;
            this.negoReqBuffer = negoReqBuffer;
            this.negoRespBuffer = negoRespBuffer;
        }
    
    
        /**
         * @return the request
         */
        public SmbNegotiationRequest getRequest () {
            return this.request;
        }
    
    
        /**
         * @return the response
         */
        public SmbNegotiationResponse getResponse () {
            return this.response;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_cookie_params/test_tutorial001_an.py

        client = TestClient(app, cookies=cookies)
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    def test_openapi_schema():
        client = TestClient(app)
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. cmd/bucket-listobjects-handlers.go

    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	response := generateListVersionsResponse(ctx, bucket, prefix, marker, versionIDMarker, delimiter, encodingType, maxkeys, listObjectVersionsInfo, checkObjMeta)
    
    	// Write success response.
    	writeSuccessResponseXML(w, encodeResponseList(response))
    }
    
    // ListObjectsV2MHandler - GET Bucket (List Objects) Version 2 with metadata.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top