dave caruso
6afa78120a
feat(runtime): implement server.requestIp + node:http socket.address() ( #6165 )
...
* [server] requestIp and AnyRequestContext
Changed Request.uws_request to the new AnyRequestContext. This
allows grabbing the IP from a Request. Unfinished.
* [server] basic `requestIp` implementation
Currently using uws's requestIpAsText, which always returns a ipv6
string. We should return a `SocketAddress` object to the user instead,
which will contain the formatted address string and what type it is.
We'll have to use requestIpAsBinary and parse that ourselves.
* TypeScript docs, use `bun.String`, return `undefined` instead of `null`
if we can't get the ip.
* binary address formatting
* uws getRemoteAddress binding
* remove dead code
* working
* final touches✨
* I will abide by the results of this poll.
---------
Co-authored-by: Parzival-3141 <29632054+Parzival-3141@users.noreply.github.com >
2023-09-29 03:39:26 -07:00
..
2023-08-30 14:48:30 -07:00
2023-08-25 01:43:25 -07:00
2023-08-24 16:13:14 -07:00
2023-08-15 14:33:45 -07:00
2023-06-21 23:38:18 -07:00
2023-09-29 03:39:26 -07:00
2023-09-20 08:10:03 -07:00
2023-09-28 23:20:26 -07:00
2023-09-29 03:39:26 -07:00
2023-09-17 19:41:51 -07:00
2023-09-28 19:07:51 -07:00
2023-09-11 17:19:43 -07:00
2023-09-29 03:39:26 -07:00
2023-07-18 01:20:20 -07:00
2023-08-28 04:39:16 -07:00
2023-09-21 07:56:44 -07:00
2023-09-11 08:51:35 -07:00
2023-09-20 08:10:03 -07:00
2023-05-11 14:42:54 -07:00
2023-09-14 23:25:01 -07:00
2023-07-18 01:20:20 -07:00
2023-09-07 10:57:46 -07:00
2023-07-18 01:20:20 -07:00
2023-08-03 20:09:05 -07:00
2023-07-18 01:20:20 -07:00
2023-08-15 14:33:45 -07:00
2023-07-18 01:20:20 -07:00
2023-07-18 01:20:20 -07:00
2023-07-18 01:20:20 -07:00
2023-09-22 21:26:59 -07:00
2023-08-28 04:39:16 -07:00
2023-09-13 17:31:59 -07:00
2023-09-24 17:43:59 -07:00
2023-09-28 03:53:24 -07:00
2023-09-20 10:13:31 -07:00
2023-08-28 04:39:16 -07:00
2023-09-10 23:15:35 -07:00
2023-09-21 17:32:19 -07:00
2023-07-18 01:20:20 -07:00
2023-08-24 16:13:14 -07:00
2023-08-28 04:39:16 -07:00
2023-08-28 04:39:16 -07:00
2023-09-24 18:27:55 -07:00
2023-06-21 23:38:18 -07:00
2023-07-18 01:20:20 -07:00
2023-08-28 04:39:16 -07:00
2023-09-27 19:23:28 -07:00
2023-08-28 04:39:16 -07:00
2023-06-21 23:38:18 -07:00
2023-08-24 23:00:53 -07:00
2023-09-20 19:48:46 -07:00
2023-07-18 01:20:20 -07:00
2023-09-05 19:16:11 +03:00
2023-07-26 15:36:05 -07:00
2023-09-29 00:03:58 -07:00
2023-09-16 22:53:23 -07:00
2023-09-28 03:53:24 -07:00
2023-06-21 23:38:18 -07:00
2023-09-15 05:07:22 -07:00
2023-09-28 03:53:24 -07:00
2023-09-28 03:53:24 -07:00
2023-09-29 03:39:26 -07:00
2023-07-18 01:20:20 -07:00
2023-06-21 23:38:18 -07:00
2023-09-07 10:57:46 -07:00
2023-09-07 04:58:44 -07:00
2023-09-07 07:45:00 -07:00
2023-07-26 21:35:49 -07:00
2023-09-21 20:07:25 -07:00
2023-08-24 14:39:28 -07:00
2023-08-28 04:39:16 -07:00
2023-04-27 03:45:49 -07:00
2023-07-18 01:20:20 -07:00
2023-05-08 22:34:01 -07:00
2023-08-07 18:51:16 -07:00
2023-09-24 17:43:59 -07:00
2023-08-28 04:39:16 -07:00
2023-08-10 11:57:37 -07:00
2023-09-07 04:58:44 -07:00
2023-09-27 19:26:03 -07:00
2023-08-26 21:09:08 -07:00
2023-04-19 00:01:27 -07:00
2023-08-07 18:51:16 -07:00
2023-09-07 04:58:44 -07:00
2023-08-28 04:39:16 -07:00
2023-09-20 08:10:03 -07:00
2023-09-20 08:10:03 -07:00
2023-09-20 08:10:03 -07:00
2023-09-20 08:10:03 -07:00
2023-09-20 08:10:03 -07:00
2023-09-27 19:26:03 -07:00
2023-08-28 04:39:16 -07:00
2023-08-28 04:39:16 -07:00
2023-08-28 04:39:16 -07:00
2023-09-25 05:19:33 -07:00
2023-07-18 01:20:20 -07:00
2023-08-28 04:39:16 -07:00
2023-08-30 18:30:06 -07:00
2023-09-28 03:53:24 -07:00
2023-09-18 17:31:26 -07:00
2023-09-18 17:31:26 -07:00
2023-08-28 04:39:16 -07:00
2023-09-07 04:58:44 -07:00
2023-09-29 03:39:26 -07:00
2023-07-18 01:20:20 -07:00
2023-08-07 18:51:16 -07:00
2023-07-28 15:44:05 -07:00
2023-07-18 01:20:20 -07:00
2023-06-21 23:38:18 -07:00
2023-09-13 17:31:59 -07:00
2023-04-19 00:01:27 -07:00
2023-08-28 04:39:16 -07:00
2023-09-07 07:45:00 -07:00
2023-08-28 04:39:16 -07:00
2023-07-18 01:20:20 -07:00
2023-07-18 01:20:20 -07:00
2023-09-04 17:37:47 -07:00