Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for load32 (0.17 sec)

  1. tests/test_tutorial/test_conditional_openapi/test_tutorial001.py

        importlib.reload(tutorial001)
    
        client = TestClient(tutorial001.app)
        return client
    
    
    @needs_pydanticv2
    def test_disable_openapi(monkeypatch):
        monkeypatch.setenv("OPENAPI_URL", "")
        # Load the client after setting the env var
        client = get_client()
        response = client.get("/openapi.json")
        assert response.status_code == 404, response.text
        response = client.get("/docs")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  2. scripts/docs.py

    
    @lru_cache
    def is_mkdocs_insiders() -> bool:
        version = metadata.version("mkdocs-material")
        return "insiders" in version
    
    
    def get_en_config() -> Dict[str, Any]:
        return mkdocs.utils.yaml_load(en_config_path.read_text(encoding="utf-8"))
    
    
    def get_lang_paths() -> List[Path]:
        return sorted(docs_path.iterdir())
    
    
    def lang_callback(lang: Optional[str]) -> Union[str, None]:
        if lang is None:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  3. docs/em/docs/advanced/behind-a-proxy.md

    & ⤴️ ⚫️ 🔜 ❎ 🚮 📨 👆 Uvicorn 🏃‍♂ 🔛 `http://127.0.0.1:8000`.
    
    🔜 ▶️ Traefik:
    
    <div class="termy">
    
    ```console
    $ ./traefik --configFile=traefik.toml
    
    INFO[0000] Configuration loaded from file: /home/user/awesomeapi/traefik.toml
    ```
    
    </div>
    
    &amp; 🔜 ▶️ 👆 📱 ⏮️ Uvicorn, ⚙️ `--root-path` 🎛:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --root-path /api/v1
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/custom-docs-ui-assets.md

    ```
    
    ### Test it
    
    Now, you should be able to go to your docs at <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>, and reload the page, it will load those assets from the new CDN.
    
    ## Self-hosting JavaScript and CSS for docs
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Oct 30 09:58:58 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  5. docs/en/docs/index.md

    Used by FastAPI / Starlette:
    
    * <a href="https://www.uvicorn.org" target="_blank"><code>uvicorn</code></a> - for the server that loads and serves your application.
    * <a href="https://github.com/ijl/orjson" target="_blank"><code>orjson</code></a> - Required if you want to use `ORJSONResponse`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  6. docs_src/generate_clients/tutorial004.py

    import json
    from pathlib import Path
    
    file_path = Path("./openapi.json")
    openapi_content = json.loads(file_path.read_text())
    
    for path_data in openapi_content["paths"].values():
        for operation in path_data.values():
            tag = operation["tags"][0]
            operation_id = operation["operationId"]
            to_remove = f"{tag}-"
            new_operation_id = operation_id[len(to_remove) :]
            operation["operationId"] = new_operation_id
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 04 22:02:18 GMT 2022
    - 493 bytes
    - Viewed (0)
  7. docs/en/docs/deployment/docker.md

    As this component would take the **load** of requests and distribute that among the workers in a (hopefully) **balanced** way, it is also commonly called a **Load Balancer**.
    
    !!! tip
        The same **TLS Termination Proxy** component used for HTTPS would probably also be a **Load Balancer**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
  8. docs/de/docs/deployment/docker.md

    ### Ein Load Balancer – mehrere Workercontainer
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:19:17 GMT 2024
    - 38.9K bytes
    - Viewed (0)
  9. docs/zh/docs/advanced/behind-a-proxy.md

    这个文件配置 Traefik 使用路径前缀 `/api/v1`。
    
    然后,它把请求重定位到运行在 `http://127.0.0.1:8000` 上的 Uvicorn。
    
    现在,启动 Traefik:
    
    <div class="termy">
    
    ```console
    $ ./traefik --configFile=traefik.toml
    
    INFO[0000] Configuration loaded from file: /home/user/awesomeapi/traefik.toml
    ```
    
    </div>
    
    接下来,使用 Uvicorn 启动应用,并使用 `--root-path` 选项:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --root-path /api/v1
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  10. docs/pt/docs/deployment/docker.md

    ├── app
    │   ├── __init__.py
    │   └── main.py
    ├── Dockerfile
    └── requirements.txt
    ```
    
    #### Por Trás de um Proxy de Terminação TLS
    
    Se você está executando seu contêiner atrás de um Proxy de Terminação TLS (load balancer) como Nginx ou Traefik, adicione a opção `--proxy-headers`, isso fará com que o Uvicorn confie nos cabeçalhos enviados por esse proxy, informando que o aplicativo está sendo executado atrás do HTTPS, etc.
    
    ```Dockerfile
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 37.4K bytes
    - Viewed (0)
Back to top