httpserver.h icon indicating copy to clipboard operation
httpserver.h copied to clipboard

Single header library for writing non-blocking HTTP servers in C

Results 29 httpserver.h issues
Sort by recently updated
recently updated
newest added

When i trying to compile this code with `gcc main.c` ```c #define HTTPSERVER_IMPL #include "httpserver.h" #define RESPONSE "Hello, World!" void handle_request(struct http_request_s* request) { struct http_response_s* response = http_response_init(); http_response_status(response,...

Hello, is it possible to make thread per route? if its possible, can you give me example code Thanks

Fixes two bugs in _grwprintf(), causing bogus output when context buffer is full. 1. You cannot reuse va_list without copying with va_copy(). 2. "bytes +=" line is simply incorrect.

Perhaps I'm one of the only developers who likes to do web things on Windows, but it would be awesome if this project had support for Win32. I'm not entirely...

When compiling on WSL2 Ubuntu I get the following error: ```bash nick:~/dev/_lib/httpserver.h master$ make cc -O3 -std=c99 -Wall -Wextra -Werror test/main.c -o http-server In file included from test/main.c:2: test/../httpserver.h: In...

Project with the `httpserver.h` file properly included after `#define HTTPSERVER_IMPL` in a `.c` file is not be able to be compiled. As the issue #75 mentioned. If this project still...

The `httpserver.h` file is missing an `ifndef` around line 650 where it includes `common.h`. It should be: ``` #ifndef HTTPSERVER_IMPL #include "common.h" #endif ```

When not including stdio.h myself the lib does not wanna compile, should it not include stdio.h itself?