Files
SnowLuma/.pnpm-store/v11/files/63/efb29d0302886e6816f3f1235bd4d66bf4403b6113b157626e0f1596c1c8972c51b16158ff8d14dfa0793d5ecc91c90fab0ac5425c16072b1d68807a77355a
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

19 lines
512 B
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
//#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
exports.getConnInfo = getConnInfo;