checkpoint on symbol server

This commit is contained in:
Ryan Fleury committed 2026-06-08 17:32:07 -07:00
1 parent 536ca53d18
commit b22f9f2d8b
21 files changed
+736 -99

No files matched your search

+18
View File
@@ -31,3 +31,21 @@ http_status_kind_from_code(HTTP_StatusCode code)
}
return kind;
}
////////////////////////////////////////////////////////////////
//~ rjf: Synchronous Request Helper
internal HTTP_Response
http_request(Arena *arena, HTTP_RequestParams *params)
{
HTTP_Response response = {0};
Temp scratch = scratch_begin(&arena, 1);
GuardedRing *gr = guarded_ring_alloc(scratch.arena, KB(64));
{
http_push_request(gr, params, max_U64);
http_pop_response(arena, gr, &response, max_U64);
}
guarded_ring_release(gr);
scratch_end(scratch);
return response;
}
+6
View File
@@ -146,6 +146,7 @@ typedef struct HTTP_Response HTTP_Response;
struct HTTP_Response
{
U64 id;
B32 has_more;
HTTP_StatusCode code;
String8 body;
};
@@ -155,6 +156,11 @@ struct HTTP_Response
internal HTTP_StatusKind http_status_kind_from_code(HTTP_StatusCode code);
////////////////////////////////////////////////////////////////
//~ rjf: Synchronous Request Helper
internal HTTP_Response http_request(Arena *arena, HTTP_RequestParams *params);
////////////////////////////////////////////////////////////////
//~ rjf: @per_os_impl Top-Level Layer Calls