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

OS: OpenBSD 7.2 snapshot amd64 Compiler: GCC 11.2.0 I compiled and started `test/main.c` first, then ran `test/run`. All tests before `Chunked Request close: (expect empty)` are OK, but the test...

Fixes #59. When writing the answer to an HTTP request into the socket, the write might have to proceed in multiple parts. (E.g. if the receiver is not able to...

Thank you for writing this library! I find it quite useful. I encountered an issue where the server sometimes does not seem to receive requests. (This is on an application...

I changed int rc = bind(s, (struct sockaddr *)addr, sizeof(struct sockaddr_in)); to int rc = ::bind(s, (struct sockaddr *)addr, sizeof(struct sockaddr_in)); problem solved.

Hey - I've noticed that when I send an empty header value to the parser, the parser will consume the CRLF as whitespace and take the next header's key as...

Hello, In order to exit from the server cleaning the way, may be doing this change in the line 1700: ``` while (1) { ``` change to ``` int nev...

``` $ env LANG=C gcc q.c In file included from q.c:2: httpserver.h: In function 'http_listen': httpserver.h:1223:40: error: 'SO_REUSEPORT' undeclared (first use in this function); did you mean 'SO_REUSEADDR'? 1223 |...

In line 38, curl needs -H'Connection: close' to test correct. If not, it's the same test as keep-alive. echo "\n\nChunked Request close: (expect empty)" curl -H'Expect:' -H'Connection: close' -H'Transfer-Encoding: chunked'...

if the grwprintf_t capacity is to small and the first snprintf failed do not count the first (snprintf) bytes as written

When I compile my project with httpserver.h, occur warning : ``` ./src/httpserver.h:295:0: warning: "_POSIX_C_SOURCE" redefined #define _POSIX_C_SOURCE 199309L In file included from /usr/include/x86_64-linux-gnu/sys/types.h:25:0, from /usr/include/x86_64-linux-gnu/curl/system.h:399, from /usr/include/x86_64-linux-gnu/curl/curl.h:38, from ./src/hr_darknet.c:1: /usr/include/features.h:265:0:...