Commit Graph
568 Commits
Author SHA1 Message Date
Vinnie Falco 087844c487 Narrow the use of Fields parameters:
Every interface or implementation which operates on a templated
type Fields is evaluated to determine if basic_fields<Allocator>
is more appropriate, and changed if so.
2017-07-20 08:15:27 -07:00
Vinnie Falco 50902c3938 parser requires basic_fields (API Change):
* `parser` is now templated on Allocator

* `parser` only produces messages using `basic_fields<Allocator>`
  as the Fields type.

* message-oriented read and async_read only work on messages
  using basic_fields as the Fields type.

Actions Required:

* Callers using `parser` with Fields types other than basic_fields
  will need to create their own subclass of basic_parser to work
  with their custom fields type.
2017-07-20 08:15:27 -07:00
Vinnie Falco 72ce21927c Avoid explicit operator bool for error 2017-07-20 08:15:27 -07:00
Vinnie Falco 4d393f4c2a Clear the error faster 2017-07-20 08:15:27 -07:00
Vinnie Falco fc09a4cad1 Tidy up namespaces in examples 2017-07-20 08:15:27 -07:00
Vinnie Falco c3e2de29ef Doc fixes and tidy 2017-07-20 08:15:27 -07:00
Vinnie Falco d5f15976e7 Tidy up test build scripts and projects 2017-07-20 08:15:27 -07:00
Vinnie Falco 79eb97fbd6 Add server-framework tests 2017-07-20 08:15:27 -07:00
Vinnie Falco e4ed62df0b Increase detail::static_ostream coverage 2017-07-20 08:15:27 -07:00
Vinnie Falco ccf7412eaf Remove libssl-dev from a Travis matrix item
fix #508
2017-07-20 08:15:27 -07:00
Vinnie Falco d4cd46314a Set version to 61 2017-07-20 08:15:27 -07:00
Vinnie Falco abed397bc0 Don't run slow tests on certain targets 2017-07-20 08:15:27 -07:00
Vinnie Falco 2ee6646c60 Use one job less on CI 2017-07-20 08:15:27 -07:00
Vinnie Falco 0a4f964811 Tidy up resolver calls 2017-07-20 08:15:27 -07:00
Vinnie Falco a4a4121444 Add multi_port to server-framework 2017-07-20 08:15:27 -07:00
Vinnie Falco f6e0e5ef47 Tidy up http-crawl example
fix #513
2017-07-20 08:15:27 -07:00
Vinnie Falco 8b5f5c6feb Reorganize SSL examples 2017-07-20 08:15:27 -07:00
Vinnie Falco 8f627b0748 Fix shadowing warnings
fix #510
2017-07-20 08:15:27 -07:00
Vinnie Falco 65932ee343 Add server-framework SSL HTTP and WebSocket ports 2017-07-20 08:15:27 -07:00
Vinnie Falco 74891560ae Refactor WebSocket, HTTP examples:
fix #297, fix #488

* Errors are checked and reported
* More comments explaining what is going on
* The connection is gracefully closed

WebSocket:

* Messages are drained before closing
2017-07-20 08:15:27 -07:00
Vinnie Falco 298bf5fbb1 Flush the output stream in the example 2017-07-20 08:15:27 -07:00
Vinnie Falco c8b8439ebc Tidy up names in error categories 2017-07-20 08:15:27 -07:00
Vinnie Falco 5a2d78849f status-codes is unsigned (API Change) 2017-07-20 08:15:27 -07:00
Vinnie Falco 798ff25795 header::version is unsigned (API Change) 2017-07-20 08:15:27 -07:00
Vinnie Falco 8c3cc96a27 Add message::header_part() 2017-07-20 08:15:27 -07:00
Vinnie Falco 30e6426db5 Tidy up some integer conversion warnings 2017-07-20 08:15:27 -07:00
Vinnie Falco 9be141a1e0 Reorganize SSL examples 2017-07-20 08:15:27 -07:00
Vinnie Falco d12d686167 Documentation work 2017-07-20 08:15:27 -07:00
Vinnie Falco a26017d695 Use generic_cateogry for errno 2017-07-20 08:15:27 -07:00
Vinnie Falco cdff15e021 Remove Spirit dependency 2017-07-20 08:15:27 -07:00
Vinnie Falco a83b1a0108 Set version to 60 2017-07-20 08:15:27 -07:00
Vinnie Falco 8b732f94f4 Documentation work 2017-07-20 08:15:26 -07:00
Vinnie Falco fd9a13b11f New server-framework, full featured server example:
A new server framework is introduced, allowing users to
quickly get off the ground. Example servers are refactored
to use the common framework.
2017-07-20 08:15:26 -07:00
Vinnie Falco e856c46864 Fix response message type in async websocket accept 2017-07-20 08:15:26 -07:00
Vinnie Falco b5306a5712 String comparisons are public interfaces 2017-07-20 08:15:26 -07:00
Vinnie Falco f631e086e3 Set version to 59 2017-07-20 08:15:26 -07:00
Vinnie Falco 79d599c9d1 Remove obsolete doc/README.md 2017-07-20 08:15:26 -07:00
Vinnie Falco 321aa8527d Fix base64 alphabet
fix #500
2017-07-20 08:15:26 -07:00
Vinnie Falco 611e610c0c Change Body::size signature (API Change):
fix #497

This changes the function signature to accept the `value_type`
instead of the entire message.

Actions Required:

* For any user-defined models of Body, change the function signature
  to accept `value_type const&` and modify the function definition
  accordingly.
2017-07-20 08:15:26 -07:00
Vinnie Falco b5be1e0d0d Documentation work 2017-07-20 08:15:26 -07:00
Sacha 0a2a03acfa Integrated Beast interface. 2017-07-20 08:15:26 -07:00
Vinnie Falco 104ec6be18 Set version to 58 2017-07-20 08:15:26 -07:00
Vinnie Falco e5a7ff300f Better message formal parameter names
fix #476
2017-07-20 08:15:26 -07:00
Vinnie Falco dba4be01ab Fix parsing chunk size with leading zeroes
fix #496
2017-07-20 08:15:26 -07:00
Vinnie Falco 5808fa247b Remove redundant code 2017-07-20 08:15:26 -07:00
Vinnie Falco 500fa6aaaa Use static string in basic_fields::reader
fix #493
2017-07-20 08:15:26 -07:00
Vinnie Falco b4c2073973 basic_parser::put doc
fix #494
2017-07-20 08:15:26 -07:00
Vinnie Falco 648d1bc789 basic_fields::set optimization:
fix #495
2017-07-20 08:15:26 -07:00
Vinnie Falco f64109d79a Fix basic_fields insert ordering 2017-07-20 08:15:26 -07:00
Vinnie Falco 06290dc39f Avoid std::string in websocket 2017-07-20 08:15:26 -07:00