Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 137 for html (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. fastapi/openapi/docs.py

        })"""
    
        if init_oauth:
            html += f"""
            ui.initOAuth({json.dumps(jsonable_encoder(init_oauth))})
            """
    
        html += """
        </script>
        </body>
        </html>
        """
        return HTMLResponse(html)
    
    
    def get_redoc_html(
        *,
        openapi_url: Annotated[
            str,
            Doc(
                """
                The OpenAPI URL that ReDoc should load and use.
    
    Created: 2025-12-28 07:19
    - Last Modified: 2025-12-17 21:25
    - 10.1K bytes
    - Click Count (0)
  2. docs_src/websockets/tutorial002_py39.py

    from fastapi import (
        Cookie,
        Depends,
        FastAPI,
        Query,
        WebSocket,
        WebSocketException,
        status,
    )
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    html = """
    <!DOCTYPE html>
    <html>
        <head>
            <title>Chat</title>
        </head>
        <body>
            <h1>WebSocket Chat</h1>
            <form action="" onsubmit="sendMessage(event)">
    Created: 2025-12-28 07:19
    - Last Modified: 2025-12-17 20:41
    - 2.8K bytes
    - Click Count (0)
  3. docs_src/custom_response/tutorial004_py39.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)
    Created: 2025-12-28 07:19
    - Last Modified: 2025-12-17 20:41
    - 491 bytes
    - Click Count (0)
  4. docs/es/docs/advanced/templates.md

    ///
    
    ## Escribiendo plantillas { #writing-templates }
    
    Luego puedes escribir una plantilla en `templates/item.html` con, por ejemplo:
    
    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### Valores de Contexto de la Plantilla { #template-context-values }
    
    En el HTML que contiene:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    Created: 2025-12-28 07:19
    - Last Modified: 2025-12-17 20:41
    - 3.7K bytes
    - Click Count (0)
  5. docs/pt/docs/advanced/templates.md

    ///
    
    ## Escrevendo templates { #writing-templates }
    
    Então você pode escrever um template em `templates/item.html`, por exemplo:
    
    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### Valores de contexto do template { #template-context-values }
    
    No código HTML que contém:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    Created: 2025-12-28 07:19
    - Last Modified: 2025-12-17 20:41
    - 3.6K bytes
    - Click Count (0)
  6. README.md

    Fess also contains a Crawler, which can crawl documents on a [web server](https://fess.codelibs.org/15.3/admin/webconfig-guide.html), [file system](https://fess.codelibs.org/15.3/admin/fileconfig-guide.html), or [Data Store](https://fess.codelibs.org/15.3/admin/dataconfig-guide.html) (such as a CSV or database). Many file formats are supported including (but not limited to): Microsoft Office, PDF, and zip.
    
    Created: 2025-12-20 09:19
    - Last Modified: 2025-12-20 00:28
    - 7.8K bytes
    - Click Count (2)
  7. tests/test_tutorial/test_websockets/test_tutorial003.py

        return mod
    
    
    @pytest.fixture(name="html")
    def get_html(mod: ModuleType):
        return mod.html
    
    
    @pytest.fixture(name="client")
    def get_client(mod: ModuleType):
        client = TestClient(mod.app)
    
        return client
    
    
    def test_get(client: TestClient, html: str):
        response = client.get("/")
        assert response.text == html
    
    
    def test_websocket_handle_disconnection(client: TestClient):
    Created: 2025-12-28 07:19
    - Last Modified: 2025-12-17 21:25
    - 1.3K bytes
    - Click Count (0)
  8. docs/de/docs/advanced/templates.md

    ///
    
    ## Templates erstellen { #writing-templates }
    
    Dann können Sie unter `templates/item.html` ein Template erstellen, mit z. B. folgendem Inhalt:
    
    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### Template-Kontextwerte { #template-context-values }
    
    Im HTML, welches enthält:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    Created: 2025-12-28 07:19
    - Last Modified: 2025-12-17 20:41
    - 4.3K bytes
    - Click Count (0)
  9. docs/en/docs/advanced/templates.md

    ///
    
    ## Writing templates { #writing-templates }
    
    Then you can write a template at `templates/item.html` with, for example:
    
    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### Template Context Values { #template-context-values }
    
    In the HTML that contains:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    Created: 2025-12-28 07:19
    - Last Modified: 2025-12-17 20:41
    - 3.5K bytes
    - Click Count (0)
  10. docs/ru/docs/advanced/custom-response.md

    И это будет задокументировано как таковое в OpenAPI.
    
    ///
    
    /// tip | Совет
    
    `ORJSONResponse` доступен только в FastAPI, а не в Starlette.
    
    ///
    
    ## HTML-ответ { #html-response }
    
    Чтобы вернуть ответ с HTML напрямую из **FastAPI**, используйте `HTMLResponse`.
    
    - Импортируйте `HTMLResponse`.
    - Передайте `HTMLResponse` в параметр `response_class` вашего декоратора операции пути.
    
    Created: 2025-12-28 07:19
    - Last Modified: 2025-12-17 20:41
    - 19.7K bytes
    - Click Count (0)
Back to Top