Ole Christian Eidheim
Ole Christian Eidheim
You are right, it is polite to add Content-Type:) Do you know of a git repository that is dedicated to having an up to date Mime type lookup? We could...
Thank you. I'll probably merge this but am going to make some changes. One of the changes is to put some functions that are not directly related to network communication...
After some thought I've decided not to merge these commits, but some of the features will be added (they will look a bit different). For instance, I'll add some convenient...
Yes, I will consider these functions as well. Feel free to keep this PR open until the most important functions are implemented. If I reuse some of your code, I...
Here is how you currently can parse and show post form data: ```c++ server.resource["^/post_example$"]["POST"]=[](shared_ptr response, shared_ptr request) { auto fields=SimpleWeb::QueryString::parse(request->content.string()); stringstream stream; for(auto &field: fields) stream
`Set-Cookie` header field values can now be parsed using `HttpHeader::FieldValue::SemicolonSeparatedAttributes::parse`.
It seems strange that this define is required on Windows when using Boost.Asio. It would not be required if using standalone ASIO though. I think I'll wait on merging this,...
The timers are not associated with sockets, but all the async operation handlers start with calling the `Connection::cancel_timeout()`-function. See for instance https://github.com/eidheim/Simple-Web-Server/blob/b9d4be229f41e3eda72394451d479f5245d2a600/server_http.hpp#L423. In the event of a connection close, one...
Thank you, but do you have an example use case for this so I can understand the importance of such a feature?
To my understanding after reading briefly about this, the real status comes in the line after the 100-Continue status. We would need to add this exception when parsing the header...