- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 154 for html (0.2 sec)
-
docs_src/templates/templates/item.html
HTML - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jan 11 22:25:37 GMT 2024 - 235 bytes - Viewed (0) -
docs/en/overrides/main.html
{% extends "base.html" %} {% block announce %} <div class="announce-wrapper"> <div id="announce-left"> <div class="item"> <a class="announce-link" href="https://twitter.com/fastapi" target="_blank"> <span class="twemoji twitter"> {% include ".icons/fontawesome/brands/twitter.svg" %} </span> Follow <strong>@fastapi</strong> on <strong>Twitter</strong> to stay updated </a> </div> <div class="item">
HTML - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Mar 25 23:10:11 GMT 2024 - 4.6K bytes - Viewed (0) -
docs/en/overrides/partials/copyright.html
Sebastián Ramírez <******@****.***> 1707080219 +0100
HTML - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Feb 04 20:56:59 GMT 2024 - 450 bytes - Viewed (0) -
scripts/test-cov-html.sh
#!/usr/bin/env bash set -e set -x bash scripts/test.sh ${@} coverage combine coverage report --show-missing
Shell Script - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Nov 03 20:00:29 GMT 2022 - 124 bytes - Viewed (0) -
docs_src/custom_response/tutorial004.py
from fastapi.responses import HTMLResponse app = FastAPI() def generate_html_response(): html_content = """ <html> <head> <title>Some HTML in here</title> </head> <body> <h1>Look ma! HTML!</h1> </body> </html> """ return HTMLResponse(content=html_content, status_code=200) @app.get("/items/", response_class=HTMLResponse)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 491 bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial002.py
from fastapi.openapi.docs import ( get_redoc_html, get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html, ) from fastapi.staticfiles import StaticFiles app = FastAPI(docs_url=None, redoc_url=None) app.mount("/static", StaticFiles(directory="static"), name="static") @app.get("/docs", include_in_schema=False) async def custom_swagger_ui_html(): return get_swagger_ui_html( openapi_url=app.openapi_url,
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 19 19:54:04 GMT 2023 - 1.1K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial001.py
from fastapi import FastAPI from fastapi.openapi.docs import ( get_redoc_html, get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html, ) app = FastAPI(docs_url=None, redoc_url=None) @app.get("/docs", include_in_schema=False) async def custom_swagger_ui_html(): return get_swagger_ui_html( openapi_url=app.openapi_url, title=app.title + " - Swagger UI",
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Oct 30 09:58:58 GMT 2023 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial003_py39.py
@pytest.fixture(name="html") def get_html(): from docs_src.websockets.tutorial003_py39 import html return html @pytest.fixture(name="client") def get_client(app: FastAPI): client = TestClient(app) return client @needs_py39 def test_get(client: TestClient, html: str): response = client.get("/") assert response.text == html @needs_py39
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 1.3K bytes - Viewed (0) -
docs/pt/docs/advanced/templates.md
## Escrevendo Templates Então você pode escrever um template em `templates/item.html`, por exemplo: ```jinja hl_lines="7" {!../../../docs_src/templates/templates/item.html!} ``` ### Interpolação de Valores no Template No código HTML que contém: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %}
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 28 04:05:17 GMT 2024 - 3.4K bytes - Viewed (0) -
tests/test_default_response_class_router.py
app.include_router( router_b_override, prefix="/b", default_response_class=PlainTextResponse ) client = TestClient(app) json_type = "application/json" text_type = "text/plain; charset=utf-8" html_type = "text/html; charset=utf-8" override_type = "application/x-override" def test_app(): with client: response = client.get("/") assert response.json() == {"msg": "Hello World"}
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Mar 01 20:49:20 GMT 2020 - 5K bytes - Viewed (0)