Files
SnowLuma/.pnpm-store/v11/files/38/f80dbde293f4cddc9896d1ada744c804ef965c7de22f00d2af1115a8d20c25cd5f30d68b85a6b7c82905449ff4037ab8493688d74c364a58905f625ce5f3a8
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

18 lines
428 B
Plaintext

//#region src/adapter/deno/conninfo.ts
/**
* Get conninfo with Deno
* @param c Context
* @returns ConnInfo
* @deprecated `hono/deno` will be removed in v5. Install `@hono/deno` and import from there instead.
*/
const getConnInfo = (c) => {
const { remoteAddr } = c.env;
return { remote: {
address: remoteAddr.hostname,
port: remoteAddr.port,
transport: remoteAddr.transport
} };
};
//#endregion
export { getConnInfo };