# getConnInfo

**Kind:** Function

**Source:** [`src/adapter/netlify/conninfo.ts`](https://github.com/honojs/hono/blob/main/src/adapter/netlify/conninfo.ts#L53)

**Part of:** [Adapter](subsystem-src-adapter)

Get connection information from Netlify

`getConnInfo` retrieves connection information from the Netlify adapter. It acts as the Netlify-specific source for connection data used by the surrounding adapter flow.

## Signature

```ts
function getConnInfo(c: Context<Env>)
```

## Parameters

| Name | Type |
|---|---|
| `c` | `Context<Env>` |

## Diagram

```mermaid
graph LR
  A[Application] --> B[getConnInfo]
  B --> C[Netlify adapter]
  C --> D[Connection information]
  D --> A
```

## Usage

```ts
import { getConnInfo } from './adapter/netlify/conninfo';

const connectionInfo = await getConnInfo();

console.log(connectionInfo);
```

## AI Coding Instructions

- Keep Netlify-specific connection lookup logic inside the Netlify adapter.
- Treat the return value as adapter data; avoid duplicating Netlify environment handling in callers.
- Handle missing or invalid connection data at the integration boundary.
- Update callers when the connection information shape changes.
