Commit Graph
516 Commits
Author SHA1 Message Date
Vinnie Falco 2bbb8ab8a2 Documentation tidy 2017-07-20 08:15:26 -07:00
Vinnie Falco 510092d34b Reorganize examples:
* The examples/ directory is renamed to example/

* Each program is in its own directory with its own build scripts
2017-07-20 08:15:26 -07:00
Vinnie Falco 02419f53fa Qualify size_t in message template 2017-07-20 08:15:26 -07:00
Vinnie Falco 1002502068 Fix unaligned reads in utf8-checker 2017-07-20 08:15:26 -07:00
Vinnie Falco 1cb4601005 Set version to 57 2017-07-20 08:15:26 -07:00
Vinnie Falco 164569157a Update doc/ for docca 2017-07-20 08:15:26 -07:00
Vinnie Falco 9920d4526a Merge commit '6a9a9064c493e4e9db7af16acd6bebf1ec938743' as 'doc/docca' 2017-07-20 08:15:03 -07:00
Vinnie Falco 6a9a9064c4 Squashed 'doc/docca/' content from commit 413b9123
git-subtree-dir: doc/docca
git-subtree-split: 413b9123481d761f4ab774e341e8c32c52c3ce2a
2017-07-20 08:15:03 -07:00
Vinnie Falco 8fa756aee6 Documentation work 2017-07-20 08:12:20 -07:00
Vinnie Falco 2eeedb8a41 Fix warning in basic_parser.cpp 2017-07-20 08:12:20 -07:00
Vinnie Falco 61a83ba769 Fix message.hpp javadocs 2017-07-20 08:12:20 -07:00
Vinnie Falco 2845494e77 Set version to 56 2017-07-20 08:12:20 -07:00
Vinnie Falco 82d76e4882 Convert buffer in range loops
fix #485
2017-07-20 08:12:20 -07:00
Sacha 1037c5bfba Add Beast INTERFACE CMake target 2017-07-20 08:12:20 -07:00
Vinnie Falco 9939320c83 More basic_parser tests 2017-07-20 08:12:20 -07:00
Vinnie Falco ca109693fb Reset error codes
fix #478
2017-07-20 08:12:20 -07:00
Vinnie Falco 7d92048c5c Test error code handling
fix #478
2017-07-20 08:12:20 -07:00
Vinnie Falco ee191d865c Tidy up README.md build instructions
fix #479
2017-07-20 08:12:20 -07:00
Vinnie Falco b9acbb537f Try harder to find Boost (cmake)
fix #480
2017-07-20 08:12:20 -07:00
Vinnie Falco 5058217c35 HTTP/1 is the default version
fix #482
2017-07-20 08:12:20 -07:00
Vinnie Falco 0eb3a6b77e Call on_chunk when the extension is empty
fix #435
2017-07-20 08:12:20 -07:00
Vinnie Falco 7712ca09b2 Add string_view_body 2017-07-20 08:12:20 -07:00
Vinnie Falco 914765c3cf Tidy up 2017-07-20 08:12:20 -07:00
Vinnie Falco 0f54bc72a4 Add provisional IANA header field names
fix #473
2017-07-20 08:12:20 -07:00
Vinnie Falco 4d21f8d2cf Revert "Add a Beast CMake interface target:"
This reverts commit 906db45bec.
2017-07-20 08:12:20 -07:00
Vinnie Falco 4b5ffeff1e Set version to 55 2017-07-20 08:12:20 -07:00
Vinnie Falco 7bde07a850 Documentation work 2017-07-20 08:12:20 -07:00
Vinnie Falco a49c096042 read_size replaces read_size_helper:
* detail::read_size_helper is removed

* public function read_size helps determine the optimum
  size for calls to a DynamicBuffer's prepare function.

* special case for Asio types which don't conform to
  the concept but have their own helper function.
2017-07-20 08:12:20 -07:00
Vinnie Falco fe4dfed27b Tidy up type_traits 2017-07-20 08:12:19 -07:00
Vinnie Falco ff8be0e931 Avoid a parser allocation using non-flat buffer:
When the parser is presented with an input buffer
sequence with length greater than one, the input is
flattened using stack space instead of dynamic
allocation if the buffer size is no greater than 8192.
2017-07-20 08:12:19 -07:00
Sacha 3c453209fe Add a Beast CMake interface target:
fix #461

This target allows other CMake projects to acquire
the Beast headers and link libraries easily.
2017-07-20 08:12:19 -07:00
Vinnie Falco 87c6e69d9f Don't allocate memory to handle obs-fold 2017-07-20 08:12:19 -07:00
Vinnie Falco add95d6ef6 Set version to 54 2017-07-20 08:12:19 -07:00
Vinnie Falco d529d6a16f Documentation work 2017-07-20 08:12:19 -07:00
Vinnie Falco 857fc22667 Fix incorrect use of [[fallthrough]]
fix #468
2017-07-20 08:12:19 -07:00
Vinnie Falco f44380159a Retain ownership when reading using a message
fix #469
2017-07-20 08:12:19 -07:00
Vinnie Falco 8c4136bb73 basic_fields refactor (API Change):
* Container interface more closely matches std::vector

* While preserving the invariant that duplicate fields
  with the same case-insensitive name have their order
  preserved.
2017-07-20 08:12:19 -07:00
Vinnie Falco 0d70d90b75 Add string_param
fix #451
2017-07-20 08:12:19 -07:00
Vinnie Falco 49a2b33b82 basic_fields members and coverage 2017-07-20 08:12:19 -07:00
Vinnie Falco e58833d7dd consuming_buffers members and coverage 2017-07-20 08:12:19 -07:00
Vinnie Falco 260b506520 multi_buffer members and coverage
fix #458
2017-07-20 08:12:19 -07:00
Vinnie Falco 5d6d486da4 flat_buffer coverage 2017-07-20 08:12:19 -07:00
Vinnie Falco 99f2425de4 static_buffer coverage 2017-07-20 08:12:19 -07:00
Vinnie Falco 4a3b42b398 Set version to 53 2017-07-20 08:12:19 -07:00
Vinnie Falco 8f88f9c3bb Remove extraneous doc file 2017-07-20 08:12:19 -07:00
Vinnie Falco 78f4858e98 Fix read_size_helper usage:
read_size_helper can return zero if the buffer reaches
its maximum size, causing infinite loops in HTTP. The
function maybe_read_size_helper is provided to throw
an exception instead of returning a value for this case.
2017-07-20 08:12:19 -07:00
Vinnie Falco e4fdeecc3b Fix basic_parser::maybe_flatten (#462) 2017-07-20 08:12:19 -07:00
Vinnie Falco 140246957e Set version to 52 2017-07-20 08:12:19 -07:00
Vinnie Falco 5149cf8495 Add drain_buffer class
fix #457
2017-07-20 08:12:19 -07:00
Vinnie Falco 23863230de flat_buffer is an AllocatorAwareContainer
fix #453
2017-07-20 08:12:19 -07:00