# StreamableHttpConnection

> **Class** in `langchain_mcp_adapters`

📖 [View in docs](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection)

Connection configuration for Streamable HTTP transport.

## Signature

```python
StreamableHttpConnection()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    transport: Literal['streamable_http'],
    url: str,
    headers: NotRequired[dict[str, Any] | None],
    timeout: NotRequired[timedelta],
    sse_read_timeout: NotRequired[timedelta],
    terminate_on_close: NotRequired[bool],
    session_kwargs: NotRequired[dict[str, Any] | None],
    httpx_client_factory: NotRequired[McpHttpClientFactory | None],
    auth: NotRequired[httpx.Auth],
)
```

| Name | Type |
|------|------|
| `transport` | `Literal['streamable_http']` |
| `url` | `str` |
| `headers` | `NotRequired[dict[str, Any] \| None]` |
| `timeout` | `NotRequired[timedelta]` |
| `sse_read_timeout` | `NotRequired[timedelta]` |
| `terminate_on_close` | `NotRequired[bool]` |
| `session_kwargs` | `NotRequired[dict[str, Any] \| None]` |
| `httpx_client_factory` | `NotRequired[McpHttpClientFactory \| None]` |
| `auth` | `NotRequired[httpx.Auth]` |


## Properties

- `transport`
- `url`
- `headers`
- `timeout`
- `sse_read_timeout`
- `terminate_on_close`
- `session_kwargs`
- `httpx_client_factory`
- `auth`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-mcp-adapters/blob/8f580f029fabd78891ea4dbfd1de3b1d9e4fa001/langchain_mcp_adapters/sessions.py#L165)