> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# useHonoContext

Used to obtain backend request context in an integrated BFF function.

## Usage

```ts
import { useHonoContext } from '@modern-js/server-runtime';
```

## Function Signature

`function useHonoContext(): Context`

## Example

Developers can use `context` to obtain more request information, such as setting response headers:

```ts
import { useHonoContext } from '@modern-js/server-runtime';

export async function get() {
  const c = useHonoContext();
  c.res.headers.set('x-bff-api', 'true');
  // ...
}
```
