conninfo.ts
This file
Path
src/adapter/cloudflare-workers/conninfo.ts
10 lines 路 313 bytes 路 TypeScript
Last changed by
feat(adapters): add the seven adapters as workspace packages (#5463)Yusuke Wadabefore adoptionb877827
History of this fileTake it
1234567891011import type { GetConnInfo } from '../../helper/conninfo'
/** * @deprecated `hono/cloudflare-workers` will be removed in v5. Install `@hono/cloudflare-workers` and import from there instead. */export const getConnInfo: GetConnInfo = (c) => ({ remote: { address: c.req.header('cf-connecting-ip'), },})