Files
SnowLuma/.pnpm-store/v11/files/4a/7f605e1de1ef4cf71dfea5cc2a1cc3902133ea99f1b2cac6802a08c69efd62af45223744ae5a8ecdbdaecb5347d79af8bfc19b17d47c42baf83216f61e0cc1
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

24 lines
702 B
Plaintext

import { GetConnInfo } from "../../helper/conninfo/types.js";
//#region src/adapter/netlify/conninfo.d.ts
/**
* Get connection information from Netlify
* @param c - Context
* @returns Connection information including remote address
* @example
* ```ts
* import { Hono } from 'hono'
* import { handle, getConnInfo } from 'hono/netlify'
*
* const app = new Hono()
*
* app.get('/', (c) => {
* const info = getConnInfo(c)
* return c.text(`Your IP: ${info.remote.address}`)
* })
*
* export default handle(app)
* ```
* @deprecated `hono/netlify` will be removed in v5. Install `@hono/netlify` and import from there instead.
*/
export declare const getConnInfo: GetConnInfo;
//#endregion