Commit graph

51 commits

Author SHA1 Message Date
David Wedderwille
df8fdb277b fixes compile error with MinGW. 2019-09-30 14:19:23 +02:00
eidheim
a1d8282918 Deprecated Request::remote_endpoint_address() and Request::remote_endpoint_port() 2019-09-17 10:59:21 +02:00
eidheim
da7eee64a8 Fixes #282 : compilation error in MSVC 2019-09-16 09:50:59 +02:00
eidheim
b914172056 Fixes #282 : use thread-safe variants of gmtime 2019-09-14 14:23:46 +02:00
eidheim
0f8b26ff19 Fixes #276 incorrect abbreviation for december in Date::to_string 2019-08-05 09:18:27 +02:00
eidheim
7b6293c067 Made Date::to_string thread safe with other Date::to_string calls 2019-08-01 09:13:08 +02:00
eidheim
ac7cc6ef01 Optimized Date::to_string for successive calls 2019-07-31 21:38:35 +02:00
eidheim
83788f3885 Added SimpleWeb::Date::to_string to create HTTP date strings 2019-07-31 15:23:50 +02:00
eidheim
ed46b43fa7 Improved comments on public functions and variables as suggested in https://github.com/openjournals/joss-reviews/issues/1592#issuecomment-514946444 2019-07-26 09:28:20 +02:00
eidheim
d9d554b1b5 Client: added support for non-standard line endings in response status and header 2019-06-24 19:48:11 +02:00
eidheim
b7e5a37da4 Removed possibly unnecessary is_tcp_fast_open_supported-function 2019-01-10 12:57:38 +01:00
gavin.smith@coralbay.tv
0eb6269c70 Linux server-side TFO: Clean-up upon code review 2019-01-03 22:06:59 +00:00
gavin.smith@coralbay.tv
7d43617993 Added support for TCP Fast Open in server when using Linux. 2018-12-30 00:25:11 +00:00
daMaex
4c2fac8c1e fixed compiling on never msvc with older language version (c++11/14) 2018-10-19 13:11:10 +02:00
eidheim
f39f21b56f Minor cleanups 2018-07-29 22:27:10 +02:00
eidheim
1ae9f69b1f Added missing include 2018-07-23 21:35:16 +02:00
eidheim
56b1df1ee5 Moved SimpleWeb::string_view to utility.hpp, and made use of string_view in Server::Response::write 2018-07-12 08:43:07 +02:00
eidheim
8b75c14aef Fixes #231: added checks to getline calls in parse functions so that they can be used outside the Server/Client classes 2018-07-04 20:47:47 +02:00
eidheim
fb4a17d5ed Fixes #203: header field values are now correctly parsed even with more than 1 space after : 2018-01-24 13:04:06 +01:00
eidheim
d0a0ca2941 Resolves #184: further fixes to Percent::encode 2018-01-03 18:38:39 +01:00
eidheim
bbbf350693 Fixes Percent::encode issue mentioned in #184 2018-01-03 18:11:23 +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
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
bc4c49134d Removed unnecessary cstddef includes 2017-09-30 12:08:53 +02:00
knowledge4igor
2cfaa0e2a0 Mini refactoring: using std::size_t and std::numeric_limits 2017-09-25 23:33:31 +03: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
cc838b6ec2 Minor utility.hpp cleanup 2017-08-13 00:07:45 +02:00
eidheim
64bd58e5da Fixes #149: added and resolved -Wsign-conversion warnings 2017-08-12 15:36:28 +02:00
eidheim
dcaad5e9da Minor comment cleanup 2017-07-26 08:05:02 +02:00
eidheim
7dd2d2108a Added noexcept 2017-07-22 12:50:40 +02:00
eidheim
e3789b6d4d ScopeRunner::stop now returns if count is already negative 2017-07-20 18:32:35 +02:00
eidheim
474fab90f3 Renamed ScopesContinue to ScopeRunner, and some related cleanup 2017-07-20 17:21:19 +02:00
eidheim
70e8c3104c Renamed ContinueScopes to ScopesContinue 2017-07-20 11:31:58 +02:00
eidheim
06322ab604 Minor cleanup of utility.hpp 2017-07-20 10:10:46 +02:00
eidheim
35f835a67b Cancel handlers feature: replaced readers-writer lock with a spinlock implementation 2017-07-20 10:04:05 +02:00
eidheim
e824aba871 Changed include guards in utility.hpp 2017-07-19 08:10:43 +02:00
eidheim
b89f5635a5 Moved request and response message parsing to utility.hpp 2017-07-19 08:03:23 +02:00
eidheim
c03e378e69 Comments addition and cleanup 2017-07-10 11:12:10 +02:00
eidheim
653e24296b Improved includes in utility.hpp 2017-07-09 23:12:02 +02:00
eidheim
9b5063f422 Replaced Server/Client::shared_from_this with asio callback checks if the Server/Client has been destroyed. Also added SharedMutex to utility.hpp. 2017-07-07 11:25:06 +02:00
eidheim
80ab651fca Removed deprecated functions 2017-07-03 14:31:22 +02:00
eidheim
e50d2fc63a Added .clang-format file and applied style to source files 2017-06-26 15:23:29 +02:00
eidheim
bf379ebcba Server::Response::write convenience functions no longer write Content-Length if close_connection_after_response is set. Also added some doxygen comments 2017-06-26 07:16:50 +02:00
eidheim
98d9617244 Added QueryString class with create and parse functions to utility.hpp 2017-06-25 16:43:49 +02:00
eidheim
1d9e900f44 Added Percent::encode 2017-06-25 14:32:38 +02:00
eidheim
d9faf1a6cb Added Status Code header 2017-06-22 18:06:40 +02:00
eidheim
d553ca7a89 Cleanup of parse_query_string and fixed a potential segmentation fault 2017-06-22 14:44:55 +02:00