Andrew Lalis andrew
andrew pushed to main at Handy-Http/transport 2024-11-14 19:51:27 +00:00
97f544d95b Added working HTTP/1.1 transport implementation.
andrew commented on issue Handy-Http/primitives#3 2024-10-30 12:11:12 +00:00
Client address

I'd actually prefer to avoid using the existing standard library where at all possible (so that this code is largely compatible with Phobos3 or whatever).

In recent commits, I've removed the…

andrew pushed to main at Handy-Http/primitives 2024-10-30 12:08:48 +00:00
9a4c4a46f6 Added documentation to address module.
andrew pushed to main at Handy-Http/primitives 2024-10-29 02:06:00 +00:00
a5a3774d69 Added address module, removed std.typecons usage, and prepped request module for removing remaining std lib imports.
andrew commented on issue Handy-Http/primitives#2 2024-10-28 15:21:55 +00:00
Request query parameter storage

I've pushed a commit which adds a parseQueryParameters function that takes a string and returns a list of QueryParameter structs, which is more appropriate. I've removed the query params from…

andrew closed issue Handy-Http/primitives#2 2024-10-28 15:21:55 +00:00
Request query parameter storage
andrew pushed to main at Handy-Http/primitives 2024-10-28 15:20:45 +00:00
144ac5c7b2 Added parseQueryParameters function and removed query params from the request itself.
andrew closed issue Handy-Http/primitives#4 2024-10-28 14:21:18 +00:00
HTTP version of requests and TLS
andrew commented on issue Handy-Http/primitives#4 2024-10-28 14:21:18 +00:00
HTTP version of requests and TLS

Yep, makes sense. I've renamed it to V1, and added some documentation text to explain the scope of each version.

andrew pushed to main at Handy-Http/primitives 2024-10-28 14:20:00 +00:00
564c2310bf Added documentation and simplified HttpVersion enum.
andrew commented on issue Handy-Http/primitives#2 2024-10-28 14:15:13 +00:00
Request query parameter storage

So you're suggesting that the ServerHttpRequest simply provides the full raw URL, and that users would be free to parse it however they like? And in that case, I'd provide convenience functions…

andrew pushed to main at Handy-Http/primitives 2024-10-28 14:12:08 +00:00
082a4ba42c Addressed issues #3 (client address) and #1 (HTTP methods as strings)
andrew commented on issue Handy-Http/primitives#3 2024-10-28 14:11:26 +00:00
Client address

I'm going to go ahead and commit this along with the HTTP method update, and feel free to close if you're satisfied, or you are free to submit your own PR on it.

andrew closed issue Handy-Http/primitives#1 2024-10-28 14:10:26 +00:00
Support for arbitrary HTTP methods
andrew commented on issue Handy-Http/primitives#1 2024-10-28 14:09:26 +00:00
Support for arbitrary HTTP methods

Yep, you're right; I'm changing the type to const string method;. But I will still provide enum HttpMethod : string as a convenience for common methods.

andrew commented on issue Handy-Http/primitives#3 2024-10-28 14:02:35 +00:00
Client address

I am thinking of doing something like this, and adding const InternetAddress clientAddress; to the ServerHttpRequest:

/// The data representing a remote IPv4 internet address,…
andrew pushed to main at Handy-Http/client 2024-10-22 19:21:28 +00:00
a29804443b Added CC0 license.
andrew pushed to main at Handy-Http/websockets 2024-10-22 19:21:03 +00:00
65f52af5db Added CC0 license.
andrew pushed to main at Handy-Http/media 2024-10-22 19:20:02 +00:00
ec6dbd8cef Added CC0 license and icons.
andrew pushed to main at Handy-Http/transport 2024-10-22 18:56:32 +00:00
c7bd02be85 Changed to CC0 license, added work-in-progress code for HTTP/1