libhttpserver
libhttpserver copied to clipboard
C++ library for creating an embedded Rest HTTP server (and more)
Is there any issue to write banned IP entry to an error log ? Something like that: ```c++ if ((((static_cast(cls))->default_policy == http_utils::ACCEPT) && ((static_cast(cls))->bans.count(ip_representation(addr))) && (!(static_cast(cls))->allowances.count(ip_representation(addr)))) || (((static_cast(cls))->default_policy == http_utils::REJECT)...
### Identify the Bug https://github.com/etr/libhttpserver/issues/329 ### Description of the Change This pull request introduces the usage of locks in the werbserver class in order to protect member variables from data...
### Prerequisites * [X] Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo%3Aetr%2Flibhttpserver&type=Issues ### Description The `deferred_response` constructor includes...
### Prerequisites * [X] Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo%3Aetr%2Flibhttpserver&type=Issues ### Description The documentation states that...
after succefuly build of libmicrohttpi try to run the configure command like this : ``` vagrant@vagrant:~/libhttpserver/build$ CPPFLAGS=-I/home/vagrant/libmicrohttpd/libmicrohttpd-0.9.77/build/libmicrohttpd/include LDFLAGS=-L/home/vagrant/libmicrohttpd/libmicrohttpd-0.9.77/build/libmicrohttpd/lib ../configure --disable-doxygen-man --disable-doxygen-dot --disable-doxygen-doc --enable-debug CFLAGS="-g -O0" --prefix=/home/vagrant/libmicrohttpd/libmicrohttpd-0.9.77/build/libmicrohttpd ``` im getting this...
### Prerequisites * [X] Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo%3Aetr%2Flibhttpserver&type=Issues ### Description [This test here](https://github.com/etr/libhttpserver/blob/914ac9e6d2483347d11fc8bab0d85c9df1dc8b0e/src/webserver.cpp#L637-L638) is...
Hey @etr, Can you please update an example of **get_args()** and **get_args_flat()** method, I'm not finding any example for given method. My use case is, I want to parse entire...
### Prerequisites * [ ] Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo%3Aetr%2Flibhttpserver&type=Issues ### Description [Description of the...
### Description of the Change Added a getter for the content of a string_response. Example usage: a custom logger that shall log the content. ### Release Notes Added a get-method...
Hi folks, Thank you so much for maintaining this repository. May I share the following issue with you? **Describe the issue** I am following the [Hello World](https://github.com/etr/libhttpserver/blob/master/examples/hello_world.cpp) example. **To Reproduce**...