diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-02-24 11:22:20 -0500 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-02-24 11:22:20 -0500 |
| commit | cd0335d0c468cf55e53b5b3c1fae33d45c7de752 (patch) | |
| tree | bfde27b1eed8523b846871c08f05f92c7c5b491d /beaker.h | |
| parent | 425a6a3a145e805d3d38caa0df08243dab7dbcb4 (diff) | |
| download | beaker-cd0335d0c468cf55e53b5b3c1fae33d45c7de752.tar.gz | |
added function to serve binary data
Diffstat (limited to 'beaker.h')
| -rw-r--r-- | beaker.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
