Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 267 for 8080 (0.02 seconds)

  1. docs/ja/docs/advanced/wsgi.md

    ## チェック { #check-it }
    
    これで、パス `/v1/` 配下へのすべてのリクエストは Flask アプリケーションが処理します。
    
    それ以外は **FastAPI** が処理します。
    
    実行して [http://localhost:8000/v1/](http://localhost:8000/v1/) にアクセスすると、Flask からのレスポンスが表示されます:
    
    ```txt
    Hello, World from Flask!
    ```
    
    さらに [http://localhost:8000/v2](http://localhost:8000/v2) にアクセスすると、FastAPI からのレスポンスが表示されます:
    
    ```JSON
    {
        "message": "Hello World"
    }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  2. docs/de/docs/advanced/wsgi.md

    Wenn Sie das ausführen und auf [http://localhost:8000/v1/](http://localhost:8000/v1/) gehen, sehen Sie die <abbr title="Response – Antwort: Daten, die der Server zum anfragenden Client zurücksendet">Response</abbr> von Flask:
    
    ```txt
    Hello, World from Flask!
    ```
    
    Und wenn Sie auf [http://localhost:8000/v2](http://localhost:8000/v2) gehen, sehen Sie die Response von FastAPI:
    
    ```JSON
    {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 1.7K bytes
    - Click Count (0)
  3. tests/test_openapi_servers.py

    from inline_snapshot import snapshot
    
    app = FastAPI(
        servers=[
            {"url": "/", "description": "Default, relative server"},
            {
                "url": "http://staging.localhost.tiangolo.com:8000",
                "description": "Staging but actually localhost still",
            },
            {"url": "https://prod.example.com"},
        ]
    )
    
    
    @app.get("/foo")
    def foo():
        return {"message": "Hello World"}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  4. docs/zh/docs/advanced/strict-content-type.md

    这种攻击主要在以下情况下相关:
    
    - 应用在本地(如 `localhost`)或内网中运行
    - 且应用没有任何认证,假定来自同一网络的请求都可信。
    
    ## 攻击示例 { #example-attack }
    
    假设你构建了一个本地运行的 AI 代理。
    
    它提供了一个 API,地址为
    
    ```
    http://localhost:8000/v1/agents/multivac
    ```
    
    另有一个前端,地址为
    
    ```
    http://localhost:8000
    ```
    
    /// tip | 提示
    
    注意它们的主机相同。
    
    ///
    
    之后,你可以通过前端让该 AI 代理替你执行操作。
    
    由于它在本地运行、而非暴露在开放的互联网,你决定不配置任何认证,只信任对本地网络的访问。
    
    于是,你的某位用户安装并在本地运行了它。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 3K bytes
    - Click Count (0)
  5. docs/tr/docs/tutorial/debugging.md

    </div>
    
    Python tarafından otomatik oluşturulan, dosyanızın içindeki `__name__` adlı dahili değişkenin değeri `"__main__"` string'i olur.
    
    Dolayısıyla şu bölüm:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    çalışır.
    
    ---
    
    Ancak modülü (dosyayı) import ederseniz bu gerçekleşmez.
    
    Yani örneğin `importer.py` adında başka bir dosyanız var ve içinde şunlar bulunuyorsa:
    
    ```Python
    from myapp import app
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  6. docs/en/docs/contributing.md

    $ fastapi dev tutorial001.py
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    as Uvicorn by default will use the port `8000`, the documentation on port `8008` won't clash.
    
    ### Translations
    
    Help with translations is VERY MUCH appreciated! And it can't be done without the help from the community. 🌎 🚀
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 13:59:26 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  7. docs/uk/docs/tutorial/debugging.md

    ```
    
    </div>
    
    тоді внутрішня змінна `__name__` у вашому файлі, яка створюється автоматично Python, матиме значення рядка `"__main__"`.
    
    Отже, цей блок коду:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    буде виконаний.
    
    ---
    
    Це не станеться, якщо ви імпортуєте цей модуль (файл).
    
    Отже, якщо у вас є інший файл `importer.py` з:
    
    ```Python
    from myapp import app
    
    # Ще трохи коду
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  8. docs/ru/docs/advanced/strict-content-type.md

    ## Пример атаки { #example-attack }
    
    Представьте, что вы сделали способ запускать локального ИИ-агента.
    
    Он предоставляет API по адресу
    
    ```
    http://localhost:8000/v1/agents/multivac
    ```
    
    Есть также фронтенд по адресу
    
    ```
    http://localhost:8000
    ```
    
    /// tip | Совет
    
    Обратите внимание, что у обоих один и тот же хост.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  9. docs/tr/docs/advanced/strict-content-type.md

    Yerelde çalışan bir AI agent’ı (yapay zeka ajanı) çalıştırmanın bir yolunu geliştirdiğinizi düşünün.
    
    Bir API sunuyor:
    
    ```
    http://localhost:8000/v1/agents/multivac
    ```
    
    Ayrıca bir frontend var:
    
    ```
    http://localhost:8000
    ```
    
    /// tip | İpucu
    
    İkisinin de host’u aynıdır.
    
    ///
    
    Frontend’i kullanarak AI agent’a sizin adınıza işler yaptırabiliyorsunuz.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:51:35 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  10. docs/es/docs/tutorial/debugging.md

    </div>
    
    entonces la variable interna `__name__` en tu archivo, creada automáticamente por Python, tendrá como valor el string `"__main__"`.
    
    Así que, la sección:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    se ejecutará.
    
    ---
    
    Esto no ocurrirá si importas ese módulo (archivo).
    
    Entonces, si tienes otro archivo `importer.py` con:
    
    ```Python
    from myapp import app
    
    # Algún código adicional
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 2.6K bytes
    - Click Count (0)
Back to Top