Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for format_sse_event (0.22 seconds)

  1. fastapi/sse.py

                    "ServerSentEvent. Use 'data' for JSON-serialized payloads "
                    "or 'raw_data' for pre-formatted strings."
                )
            return self
    
    
    def format_sse_event(
        *,
        data_str: Annotated[
            str | None,
            Doc(
                """
                Pre-serialized data string to use as the `data:` field.
                """
            ),
        ] = None,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  2. fastapi/routing.py

        ResponseValidationError,
        WebSocketRequestValidationError,
    )
    from fastapi.sse import (
        _PING_INTERVAL,
        KEEPALIVE_COMMENT,
        EventSourceResponse,
        ServerSentEvent,
        format_sse_event,
    )
    from fastapi.types import DecoratedCallable, IncEx
    from fastapi.utils import (
        create_model_field,
        generate_unique_id,
        get_value_or_default,
        is_body_allowed_for_status_code,
    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
Back to Top