Search Options

Results per page
Sort
Preferred Languages
Advance

Results 721 - 730 of 1,328 for responder (0.04 sec)

  1. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

                .withQueryStringParameter("name", "peter"),
            ).respond(response().withBody("Peter the person!"))
    
          val results =
            (1..20).map {
              executor.submit {
                val response =
                  client.newCall(Request((mockServer.secureEndpoint + "/person?name=peter").toHttpUrl())).execute()
    
                val body = response.body.string()
                assertThat(body).contains("Peter the person")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.7K bytes
    - Viewed (1)
  2. tests/test_request_params/test_file/test_required.py

            "/required-uploadfile-alias",
        ],
    )
    def test_required_alias_by_alias(path: str):
        client = TestClient(app)
        response = client.post(path, files=[("p_alias", b"hello")])
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 5}
    
    
    # =====================================================================================
    # Validation alias
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/background-tasks.md

    # Background Tasks { #background-tasks }
    
    You can define background tasks to be run *after* returning a response.
    
    This is useful for operations that need to happen after a request, but that the client doesn't really have to be waiting for the operation to complete before receiving the response.
    
    This includes, for example:
    
    * Email notifications sent after performing an action:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. tests/test_request_params/test_query/test_optional_str.py

        client = TestClient(app)
        response = client.get(path)
        assert response.status_code == 200
        assert response.json() == {"p": None}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-str", "/model-optional-str"],
    )
    def test_optional_str(path: str):
        client = TestClient(app)
        response = client.get(f"{path}?p=hello")
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

             *
             * @return the length in bytes of the entire notification response
             */
            public int getLength() {
                return length;
            }
    
            /**
             * Sets the total length of the notification response.
             *
             * @param length the length in bytes of the entire notification response
             */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponse.java

    import jcifs.internal.dfs.DfsReferralResponseBuffer;
    import jcifs.internal.smb1.trans.SmbComTransaction;
    import jcifs.internal.smb1.trans.SmbComTransactionResponse;
    
    /**
     * Trans2 GetDfsReferral response message for DFS referral queries.
     * This class handles the response from a TRANS2_GET_DFS_REFERRAL request, which returns
     * DFS referral information for redirecting clients to distributed file system targets.
     */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponse.java

    import jcifs.internal.smb1.trans.nt.FileNotifyInformationImpl;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.NtStatus;
    
    /**
     * SMB2 Change Notify response message.
     *
     * This response contains information about file system changes
     * that occurred in the monitored directory.
     *
     * @author mbechler
     */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  8. tests/test_request_params/test_form/test_list.py

        ["/required-list-alias", "/model-required-list-alias"],
    )
    def test_required_list_alias_by_alias(path: str):
        client = TestClient(app)
        response = client.post(path, data={"p_alias": ["hello", "world"]})
        assert response.status_code == 200, response.text
        assert response.json() == {"p": ["hello", "world"]}
    
    
    # =====================================================================================
    # Validation alias
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. tests/test_request_params/test_body/test_list.py

        ["/required-list-alias", "/model-required-list-alias"],
    )
    def test_required_list_alias_by_alias(path: str):
        client = TestClient(app)
        response = client.post(path, json={"p_alias": ["hello", "world"]})
        assert response.status_code == 200, response.text
        assert response.json() == {"p": ["hello", "world"]}
    
    
    # =====================================================================================
    # Validation alias
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_testing_dependencies/test_tutorial001.py

        assert response.json() == {
            "message": "Hello Users!",
            "params": {"q": "foo", "skip": 5, "limit": 10},
        }
    
    
    def test_override_in_users_with_params(test_module: ModuleType):
        client = test_module.client
        response = client.get("/users/?q=foo&skip=100&limit=200")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "message": "Hello Users!",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top