Buckets:
| // src/adapter/bun/conninfo.ts | |
| import { getBunServer } from "./server.js"; | |
| var getConnInfo = (c) => { | |
| const server = getBunServer(c); | |
| if (!server) { | |
| throw new TypeError("env has to include the 2nd argument of fetch."); | |
| } | |
| if (typeof server.requestIP !== "function") { | |
| throw new TypeError("server.requestIP is not a function."); | |
| } | |
| const info = server.requestIP(c.req.raw); | |
| if (!info) { | |
| return { | |
| remote: {} | |
| }; | |
| } | |
| return { | |
| remote: { | |
| address: info.address, | |
| addressType: info.family === "IPv6" || info.family === "IPv4" ? info.family : void 0, | |
| port: info.port | |
| } | |
| }; | |
| }; | |
| export { | |
| getConnInfo | |
| }; | |
Xet Storage Details
- Size:
- 655 Bytes
- Xet hash:
- 692bff0dd0d2d689c42e83160042f1255fa3af1900fb5034f8d388579c2ea4cb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.