cpp-httplib
cpp-httplib copied to clipboard
A C++ header-only HTTP/HTTPS server and client library
This change https://github.com/yhirose/cpp-httplib/pull/1632 breaks WinRT/UWP builds - there is no [`CreateFileA()`](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#requirements) available
Request: ``` GET /range.bin HTTP/1.1 Host: 127.0.0.1:18080 Range: bytes=1000- Accept: */* Connection: TE gzip Accept-Language: en-us, en;q=0.9 ``` The server `.Get()` handler: ```c++ response.status = 401; response.set_header("WWW-Authenticate", "Basic realm=123456"); ```...
I'm using gtest to do some performance testing. On Linux I have less than 1 ms, but the same code on Windows has ~30ms. I think it's a significant difference,...
I found more object copies that are not detected by static analyzers after submitting #1767
Hello, I separated each os in the workflow file to make it cleaner. Additionally, now, in case of one OS workflow failure, the others don't get cancelled (although this could...
I run the unit test with asan, ```ASAN_OPTIONS=detect_leaks=1 ./httplib-test``` cpp-httplib: commit of 3b6597bba913d51161383657829b7e644e59c006 on master branch os: macos ventura 13.5 compiler: clang-1500.1.0.2.5 below is one of the stack ``` Indirect...
Server-Sent Events Keep Socket in State CLOSE_WAIT After Client Leaves, Leading to Blocked Threads
Hi, first off: we really enjoy the library and it works really well. So thank you all! But we are facing the following issue: Given you are using Firefox to...
When I try to use http long connection, I set the timeout and maximum number to 10, the response received by my browser is still "Connection:close" After I set the...
Hello, please consider the following code: ```cpp #include using namespace httplib; int main() { auto provider = []( size_t /*off*/, DataSink& sink )->bool{ auto& os = sink.os; os
Built and ran all tests ``` [----------] Global test environment tear-down [==========] 239 tests from 65 test suites ran. (128182 ms total) [ PASSED ] 239 tests. YOU HAVE 2...