Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
14
node_modules/hono/dist/adapter/deno/conninfo.js
generated
vendored
Normal file
14
node_modules/hono/dist/adapter/deno/conninfo.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// src/adapter/deno/conninfo.ts
|
||||
var getConnInfo = (c) => {
|
||||
const { remoteAddr } = c.env;
|
||||
return {
|
||||
remote: {
|
||||
address: remoteAddr.hostname,
|
||||
port: remoteAddr.port,
|
||||
transport: remoteAddr.transport
|
||||
}
|
||||
};
|
||||
};
|
||||
export {
|
||||
getConnInfo
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue