Commit graph

530 commits

Author SHA1 Message Date
eidheim
0c8da107a6 Rename ServerBase::read_request_and_content to ServerBase::read, and ServerBase::write_response to ServerBase::write 2017-11-19 18:03:28 +01:00
eidheim
101a471ca9 Fixes #173: added server support for chunked transfer encoded requests 2017-11-19 18:03:28 +01:00
eidheim
aa974d7291 Applied newer clang-format on http(s)_examples 2017-11-18 09:58:48 +01:00
eidheim
6d1577ecaa chunked transfer encoding cleanup 2017-11-18 09:55:24 +01:00
eidheim
5fc5308a8b Fixes #174: variable length no longer uninitialized 2017-11-18 07:44:26 +01:00
eidheim
af90d7598f Simplification of Client::read_chunked 2017-11-16 07:46:23 +01:00
k1988
c5f8e73277 Merge branch 'master' of https://github.com/eidheim/Simple-Web-Server 2017-11-16 10:40:51 +08:00
k1988
345eb11c72 fix lost last chunk when there is two chunks in one read 2017-11-16 10:39:05 +08:00
eidheim
ccce9d1fdf Added Request::remote_endpoint tests to io_test 2017-11-15 07:40:02 +01:00
eidheim
5a7c021dab Added MSVC support to cmake files (not tested, but hopefully it works). Some tests are disabled due to lacking MSVC options. 2017-11-14 19:44:40 +01:00
eidheim
647a733251 Optimised the status_code-functions 2017-11-10 08:22:33 +01:00
eidheim
2860f76139 HttpHeader::FieldValue::SemicolonSeparated renamed to HttpHeader::FieldValue::SemicolonSeparatedAttributes, and cleanup of HttpHeader::FieldValue::SemicolonSeparatedAttributes::parse, attribute values are now also percent-decoded 2017-11-08 11:30:21 +01:00
eidheim
c173ef5823 Updated TODO comment in crypto.hpp 2017-11-08 09:56:46 +01:00
eidheim
54a3d2ef5a Fixes compilation issue on Debian Jessie when option USE_STANDALONE_ASIO is turned on 2017-11-08 09:47:53 +01:00
eidheim
702a571451 Fixes compilation issue for Debian Jessie 2017-11-08 09:40:28 +01:00
eidheim
61847f3443 Made Request::remote_endpoint public 2017-11-07 22:17:15 +01:00
eidheim
f55eb4af65 Changed ContentDisposition::parse to HttpHeader::FieldValue::SemicolonSeparated::parse. This function can now also parse Set-Cookie header field values 2017-11-07 22:15:06 +01:00
eidheim
29f8cc5669 Further CMakeLists.txt improvements and cleanups 2017-11-07 18:26:40 +01:00
eidheim
0d8caeca15 Modernised all CMakeLists.txt files, and made it easier to use Simple-Web-Server as a sub-project 2017-11-07 11:45:17 +01:00
eidheim
6e0a1ec9e8 Fixes issue mentioned in #164: remote endpoint address and port was not correctly set. Request::remote_endpoint_address and Request::remote_endpoint_port are now functions instead of variables in order to reduce unnecessary instructions. 2017-11-05 18:48:21 +01:00
vitor-alves
b9d4be229f Added a parse_query_string() example 2017-11-02 16:37:14 +01:00
eidheim
68f047ce8f crypto.hpp: replaced size_t with std::size_t 2017-10-29 09:40:50 +01:00
eidheim
e9cc73e437 Changed free function SimpleWeb::status_codes() from static to inline 2017-10-29 09:33:51 +01:00
eidheim
bc4c49134d Removed unnecessary cstddef includes 2017-09-30 12:08:53 +02:00
eidheim
99cc6d9ad3 Merge branch 'mini_refactoring' of https://github.com/knowledge4igor/Simple-Web-Server 2017-09-30 12:06:15 +02:00
eidheim
efac6cd8c4 Client's chunked transfer: no longer moves empty streambuf 2017-09-27 13:34:22 +02:00
eidheim
9cf3dd68ab Removed unnecessary: return 0; 2017-09-26 09:39:20 +02:00
knowledge4igor
2cfaa0e2a0 Mini refactoring: using std::size_t and std::numeric_limits 2017-09-25 23:33:31 +03:00
eidheim
0db33e72e5 Merge branch 'master' of https://github.com/tylawin/Simple-Web-Server 2017-09-25 10:31:23 +02:00
eidheim
69f945f686 Fixes #155: added max streambuf config items to limit large requests/responses if needed 2017-09-25 09:58:50 +02:00
tylawin
cf08fb4cee fix unused variable warning 2017-09-24 21:51:19 -06:00
eidheim
ec98ebc387 Added status_code_test to .gitignore 2017-09-08 15:05:15 +02:00
eidheim
9b3c1a0b89 Applied clang-format to status_code_test.cpp 2017-09-08 14:58:55 +02:00
knowledge4igor
6f9b8b7248 Add tests for status codes 2017-09-08 14:58:55 +02:00
knowledge4igor
3ab6cd8a39 Change 'typedef' constructions to type aliases 2017-09-05 01:32:21 +03:00
eidheim
a3d70bbcb5 Fixed HttpHeader::parse signature, and added ContentDisposition::parse 2017-09-04 15:55:26 +02:00
eidheim
5e5a4c8c3b Added noexcept to HttpHeader::parse 2017-09-02 18:49:22 +02:00
eidheim
9e5f86edcd Added HttpHeader::parse 2017-09-02 18:44:48 +02:00
eidheim
f7ddeeda82 Completed PR #153: using steady timer instead of deadline timer to remove boost dependency when using standalone asio 2017-08-29 09:29:23 +02:00
Breeze Chen
28803d81be Removed dependency of boost::deadline_timer if USE_STANDALONE_ASIO is defined. 2017-08-29 11:19:52 +08:00
eidheim
41891d3816 Fixes #152: Added client support for Server Name Indication 2017-08-22 09:07:54 +02:00
eidheim
cc838b6ec2 Minor utility.hpp cleanup 2017-08-13 00:07:45 +02:00
eidheim
50b13c2fd6 Added .usages_clang to .gitignore 2017-08-12 15:37:32 +02:00
eidheim
42de0bea13 Client: added try catch when parsing length of chunked content 2017-08-12 15:37:32 +02:00
eidheim
64bd58e5da Fixes #149: added and resolved -Wsign-conversion warnings 2017-08-12 15:36:28 +02:00
eidheim
ea2b0f4a80 Minor comment change to string() functions 2017-08-01 07:58:19 +02:00
eidheim
dcaad5e9da Minor comment cleanup 2017-07-26 08:05:02 +02:00
eidheim
95d44b804d Reverted boost thread removal 2017-07-24 07:37:33 +02:00
eidheim
9548404fb4 Added try catch to example synchronous client requests 2017-07-22 14:05:08 +02:00
eidheim
7c2f714949 noexcept cleanup 2017-07-22 13:33:32 +02:00