Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Clulow (0.17 sec)

  1. tests/test_compat.py

        # TODO: in theory this would allow declaring types that could be lists of bytes
        # to be read from files and other types, but I'm not even sure it's a good idea
        # to support it as a first class "feature"
        assert is_bytes_sequence_annotation(Union[List[str], List[bytes]])
    
    
    def test_is_uploadfile_sequence_annotation():
        # For coverage
        # TODO: in theory this would allow declaring types that could be lists of UploadFile
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. fastapi/utils.py

        new_field.required = field.required  # type: ignore[misc]
        new_field.model_config = field.model_config  # type: ignore[attr-defined]
        new_field.field_info = field.field_info
        new_field.allow_none = field.allow_none  # type: ignore[attr-defined]
        new_field.validate_always = field.validate_always  # type: ignore[attr-defined]
        if field.sub_fields:  # type: ignore[attr-defined]
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  3. docs/sts/web-identity.py

        data = {'grant_type': 'authorization_code',
                'code': authorization_code, 'redirect_uri': callback_uri}
        id_token_response = requests.post(
            token_url, data=data, verify=False,
            allow_redirects=False, auth=(client_id, client_secret))
    
        print('body: ' + id_token_response.text)
    
        # we can now use the id_token as much as we want to access protected resources.
    Python
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jul 28 01:37:51 GMT 2021
    - 2.9K bytes
    - Viewed (1)
  4. docs_src/cors/tutorial001.py

        "https://localhost.tiangolo.com",
        "http://localhost",
        "http://localhost:8080",
    ]
    
    app.add_middleware(
        CORSMiddleware,
        allow_origins=origins,
        allow_credentials=True,
        allow_methods=["*"],
        allow_headers=["*"],
    )
    
    
    @app.get("/")
    async def main():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 459 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_cors/test_tutorial001.py

        assert response.status_code == 200, response.text
        assert response.text == "OK"
        assert (
            response.headers["access-control-allow-origin"]
            == "https://localhost.tiangolo.com"
        )
        assert response.headers["access-control-allow-headers"] == "X-Example"
    
        # Test standard response
        headers = {"Origin": "https://localhost.tiangolo.com"}
        response = client.get("/", headers=headers)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 1.2K bytes
    - Viewed (0)
Back to top