Add back url_buffer as HTTP_String

Making the URL buffer allocation more explicit by storing it as
an HTTP_String. This provides both the pointer and length, making
the code clearer and more self-documenting.
This commit is contained in:
Claude
2025-11-23 21:29:13 +00:00
parent b924f0772c
commit 7ce2765875
4 changed files with 24 additions and 12 deletions
+4 -1
View File
@@ -75,8 +75,11 @@ typedef struct {
// TODO: comment
bool trace_bytes;
// Allocated copy of the URL string
HTTP_String url_buffer;
// Parsed URL for connection establishment
// url.scheme.ptr points to the allocated copy of the URL string
// All url.* pointers reference into url_buffer
HTTP_URL url;
// Data received from the server