LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-clischemasHttpConfig
    Class●Since v0.4

    HttpConfig

    Configuration for the built-in HTTP server that powers your deployment's routes and endpoints.

    Copy
    HttpConfig()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    appstr
    disable_assistantsbool
    disable_threadsbool
    disable_runsbool
    disable_storebool
    disable_mcpbool
    disable_a2abool
    disable_metabool
    disable_uibool
    disable_webhooksbool
    corsCorsConfig | None
    configurable_headersConfigurableHeaderConfig | None
    logging_headersConfigurableHeaderConfig | None
    middleware_orderMiddlewareOrders | None
    enable_custom_route_authbool
    mount_prefixstr
    attribute
    app: str

    Optional. Import path to a custom Starlette/FastAPI application to mount.

    Format: "path/to/module.py:app_var" If provided, it can override or extend the default routes.

    attribute
    disable_assistants: bool

    Optional. If True, /assistants routes are removed from the server.

    Default is False (meaning /assistants is enabled).

    attribute
    disable_threads: bool

    Optional. If True, /threads routes are removed.

    Default is False.

    attribute
    disable_runs: bool

    Optional. If True, /runs routes are removed.

    Default is False.

    attribute
    disable_store: bool

    Optional. If True, /store routes are removed, disabling direct store interactions via HTTP.

    Default is False.

    attribute
    disable_mcp: bool

    Optional. If True, /mcp routes are removed, disabling default support to expose the deployment as an MCP server.

    Default is False.

    attribute
    disable_a2a: bool

    Optional. If True, /a2a routes are removed, disabling default support to expose the deployment as an agent-to-agent (A2A) server.

    Default is False.

    attribute
    disable_meta: bool

    Optional. Remove meta endpoints.

    Set to True to disable the following endpoints: /openapi.json, /info, /metrics, /docs. This will also make the /ok endpoint skip any DB or other checks, always returning {"ok": True}.

    Default is False.

    attribute
    disable_ui: bool

    Optional. If True, /ui routes are removed, disabling the UI server.

    Default is False.

    attribute
    disable_webhooks: bool

    Optional. If True, webhooks are disabled. Runs created with an associated webhook will still be executed, but the webhook event will not be sent.

    Default is False.

    attribute
    cors: CorsConfig | None

    Optional. Defines CORS restrictions. If omitted, no special rules are set and cross-origin behavior depends on default server settings.

    attribute
    configurable_headers: ConfigurableHeaderConfig | None

    Optional. Defines how headers are treated for a run's configuration.

    You can include or exclude headers as configurable values to condition your agent's behavior or permissions on a request's headers.

    attribute
    logging_headers: ConfigurableHeaderConfig | None

    Optional. Defines which headers are excluded from logging.

    attribute
    middleware_order: MiddlewareOrders | None

    Optional. Defines the order in which to apply server customizations.

    attribute
    enable_custom_route_auth: bool

    Optional. If True, authentication is enabled for custom routes, not just the routes that are protected by default. (Routes protected by default include /assistants, /threads, and /runs).

    Default is False. This flag only affects authentication behavior if app is provided and contains custom routes.

    attribute
    mount_prefix: str

    Optional. URL prefix to prepend to all the routes.