Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 1,839 for CLIENT (0.06 sec)

  1. tests/test_tutorial/test_body_multiple_params/test_tutorial001_an_py39.py

    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.body_multiple_params.tutorial001_an_py39 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py39
    def test_post_body_q_bar_content(client: TestClient):
        response = client.put("/items/5?q=bar", json={"name": "Foo", "price": 50.5})
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. CHANGELOG/CHANGELOG-1.5.md

    [kubernetes-client-linux-386.tar.gz](https://dl.k8s.io/v1.5.8/kubernetes-client-linux-386.tar.gz) | `4c1b83462cc9c11144c957beca3479a16162ccd283462d3b6b2afcfa40550137`
    [kubernetes-client-linux-amd64.tar.gz](https://dl.k8s.io/v1.5.8/kubernetes-client-linux-amd64.tar.gz) | `0baefc8e2c01bddf550764a77d6fb345df331bbc4f2f56efb036d3dd50b64562`
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Thu Dec 24 02:28:26 UTC 2020
    - 136.4K bytes
    - Viewed (0)
  3. tests/test_forms_single_model.py

        alias_with: str = Field(alias="with", default="nothing")
    
    
    @app.post("/form/")
    def post_form(user: Annotated[FormModel, Form()]):
        return user
    
    
    client = TestClient(app)
    
    
    def test_send_all_data():
        response = client.post(
            "/form/",
            data={
                "username": "Rick",
                "lastname": "Sanchez",
                "age": "70",
                "tags": ["plumbus", "citadel"],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 13 09:51:00 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. docs/sts/etcd.md

    minio server /data
    ```
    
    NOTE: If `etcd` is configured with `Client-to-server authentication with HTTPS client certificates` then you need to use additional envs such as `MINIO_ETCD_CLIENT_CERT` pointing to path to `etcd-client.crt` and `MINIO_ETCD_CLIENT_CERT_KEY` path to `etcd-client.key` .
    
    ### 4. Test with MinIO STS API
    
    Once etcd is configured, **any STS configuration** will work including Client Grants, Web Identity or AD/LDAP.
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  5. tests/test_http_connection_injection.py

        await websocket.accept()
        await websocket.send_json(value)
        await websocket.close()
    
    
    client = TestClient(app)
    
    
    def test_value_extracting_by_http():
        response = client.get("/http")
        assert response.status_code == 200
        assert response.json() == 42
    
    
    def test_value_extracting_by_ws():
        with client.websocket_connect("/ws") as websocket:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Aug 09 13:56:41 UTC 2020
    - 972 bytes
    - Viewed (0)
  6. docs/recipes.md

        ```java
          /**
           * The imgur client ID for OkHttp recipes. If you're using imgur for anything other than running
           * these examples, please request your own client ID! https://api.imgur.com/oauth2
           */
          private static final String IMGUR_CLIENT_ID = "...";
          private static final MediaType MEDIA_TYPE_PNG = MediaType.parse("image/png");
    
          private final OkHttpClient client = new OkHttpClient();
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_extra_models/test_tutorial003_py310.py

    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.extra_models.tutorial003_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_get_car(client: TestClient):
        response = client.get("/items/item1")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.7.md

    [kubernetes-client-linux-386.tar.gz](https://dl.k8s.io/v1.7.16/kubernetes-client-linux-386.tar.gz) | `9c2ae578154367fe39d1b7e65f4643e605da7ebbe2e128b725d97fe1be84e26d`
    [kubernetes-client-linux-amd64.tar.gz](https://dl.k8s.io/v1.7.16/kubernetes-client-linux-amd64.tar.gz) | `b22a222caa220d47f4834e1d60156f02698f66c8ae616438feb7a88e0275b233`
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Thu May 05 13:44:43 UTC 2022
    - 308.7K bytes
    - Viewed (1)
  9. CHANGELOG/CHANGELOG-1.13.md

      - [Downloads for v1.13.12](#downloads-for-v11312)
        - [Client Binaries](#client-binaries)
        - [Server Binaries](#server-binaries)
        - [Node Binaries](#node-binaries)
      - [Changelog since v1.13.11](#changelog-since-v11311)
        - [Other notable changes](#other-notable-changes)
    - [v1.13.11](#v11311)
      - [Downloads for v1.13.11](#downloads-for-v11311)
        - [Client Binaries](#client-binaries-1)
        - [Server Binaries](#server-binaries-1)
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Thu May 05 13:44:43 UTC 2022
    - 273.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_websockets/test_tutorial002_an.py

    
    def test_main():
        client = TestClient(app)
        response = client.get("/")
        assert response.status_code == 200, response.text
        assert b"<!DOCTYPE html>" in response.content
    
    
    def test_websocket_with_cookie():
        client = TestClient(app, cookies={"session": "fakesession"})
        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/foo/ws") as websocket:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top