conninfo.ts
This file
Path
adapters/cloudflare-workers/src/conninfo.ts
7 lines · 167 bytes · TypeScript
Last changed by
feat(adapters): add the seven adapters as workspace packages (#5463)Yusuke Wadabefore adoptionb877827
History of this fileHono - **means flame🔥 in Japanese** - is a small, simple, and ultrafast web framework built on Web Standards.
0 open asksLanded Decided by oscabriel
adapters/cloudflare-workers/src/conninfo.ts
7 lines · 167 bytes · TypeScript
feat(adapters): add the seven adapters as workspace packages (#5463) · Yusuke Wada · before adoption · b877827 ·
History of this file7 lines · 167 bytes · TypeScript
feat(adapters): add the seven adapters as workspace packages (#5463) · Yusuke Wada · before adoption · b877827 ·
lines 1–7why, one step back1import type { GetConnInfo } from 'hono/conninfo'23export const getConnInfo: GetConnInfo = (c) => ({4 remote: {5 address: c.req.header('cf-connecting-ip'),6 },7})