From cd0335d0c468cf55e53b5b3c1fae33d45c7de752 Mon Sep 17 00:00:00 2001 From: frosty Date: Tue, 24 Feb 2026 11:22:20 -0500 Subject: added function to serve binary data --- beaker.h | 1 + 1 file changed, 1 insertion(+) (limited to 'beaker.h') diff --git a/beaker.h b/beaker.h index 634795f..f5c466e 100644 --- a/beaker.h +++ b/beaker.h @@ -96,6 +96,7 @@ char *parse_request_url(const char *request_buffer, UrlParams *params); const char *get_mime_type(const char *file_path); bool serve_static_file(const char *request_path_relative_to_static); bool serve_static_file_with_mime(const char *request_path_relative_to_static, const char *mime_type); +bool serve_data(const char *data, size_t size, const char *mime_type); int beaker_run(const char *ip, int port); -- cgit v1.2.3