1636 Commits

Author SHA1 Message Date
Richard Hodges
6f57e5934c Set version to 297
closes #1973
closes #1981
closes #1974
2020-06-12 18:10:25 +02:00
Richard Hodges
93040ea8cc iless and iequal take part in Heterogeneous Lookup
Fixes #1949
2020-06-12 18:10:23 +02:00
Richard Hodges
14c3d50b57 Deprecate string_param (API Change):
API Changes:

`string_param`, which was previously the argument type when setting field values
has been replaced by `string_view`. Because of this, it is no longer possible to
set message field values directly as integrals.

Users are required to convert numeric arguments to a string type prior to calling
`fields::set` et. al.

Beast provides the non-allocating `to_static_string()` function for this purpose.

To set Content-Length field manually, call `message::content_length`.

fixes #1956
2020-06-12 17:33:20 +02:00
Richard Hodges
ae2b699e04 Fix max() compile error
closes #1980
2020-06-12 14:21:11 +02:00
Richard Hodges
f25c904d14 Set version to 296
closes #1934, closes #1970
2020-06-03 12:59:57 +02:00
Richard Hodges
0fa658f644 Remove buffers_adapter.hpp (API Change):
API Changes:

The file `core/buffers_adapter.hpp` has been removed along with the deprecated
alias typename `buffers_adapter`. Affected programs should use
`core/buffers_adapator.hpp` and the type `buffers_adaptor`.

refs #1934
2020-06-03 12:59:56 +02:00
Richard Hodges
62b55e6d2d Remove zlib error invalid_code_lenths(sic) (API Change):
API Changes:

The error code enum `invalid_code_lenths` was a synonym of `invalid_code_lengths`.
Affected programs should be modified to use `invalid_code_lengths`.

refs #1934
2020-06-02 19:22:37 +02:00
Richard Hodges
cba83c0b42 Remove core/type_traits.hpp (API Change):
API Changes:

The core/type_traits.hpp public header has been removed and along with it
the type trait is_completion_handler. Beast uses the CompletionHandler correctness
checks provided by Asio. In a c++20 environment, these convert to concept checks.
2020-06-02 16:51:19 +02:00
Richard Hodges
92364b8db8 Remove reset function from flat_static_buffer (API Change):
API Changes:

The reset function has been removed from flat_static_buffer. Use the
clear function instead.

refs #1934
2020-06-02 16:05:04 +02:00
Richard Hodges
4fbb0079c3 Remove mutable_data_type from Dyanmic Buffers (API Change):
API Changes:

* Code that depends on mutable_data_type should be refactored to use
  mutable_buffers_type. Classes affected are:
  - buffers_adaptor
  - flat_buffer
  - flat_static_buffer
  - multi_buffer
  - static_buffer

refs #1934
2020-06-02 15:28:54 +02:00
Richard Hodges
3fb693eda6 Remove deprecated lowest_layer from test::stream.
refs #1934
2020-06-02 13:04:23 +02:00
Richard Hodges
60d4b54ec7 Remove handler_pointer (API Change):
API Changes:

handler_ptr has been removed. Users should use net::bind_handler and/or
bind_front_handler instead.

refs #1934
2020-06-02 12:57:43 +02:00
Richard Hodges
840cc8f9d6 Remove websocket::role_type (API Change):
websocket::role_type has been removed. Users should use beast::role_type instead.

refs #1934
2020-06-01 20:07:29 +02:00
Richard Hodges
24d0b1f7bd Remove accept_ex and handshake_ex (API Change):
API Changes:

* The following deprecated functions have been removed:
  - websocket::async_accept_ex
  - websocket::async_handshake_ex
  - websocket::accept_ex
  - websocket::handshake_ex

Programs still using these names should be refactored to use the `decorator` feature and
the remaining handshake and accept functions.

refs #1934
2020-06-01 18:52:39 +02:00
Richard Hodges
abd3b88539 Rename to BOOST_BEAST_ALLOW_DEPRECATED (API Change):
API Changes:

The macro BOOST_BEAST_NO_DEPRECATED will no longer be noticed by Beast. The only way to
enable deprecated functionality is now the macro BOOST_BEAST_ALLOW_DEPRECATED which is
undefined by default. That is, all deprecated behaviour is disabled by default.

refs #1934
2020-06-01 18:25:23 +02:00
Richard Hodges
13a928a872 Set version to 295 2020-05-29 20:28:22 +02:00
Richard Hodges
0fdf9cb4df Parser body_limit is optional (API Change):
API Changes:

The signature of basic_parser<>::body_limit(n) has changed. It now accepts an
optional std::uint64_t. The caller may indicate that no body limit is required
by calling body_limit(boost::none). The default limits remain in place in order
to maintain 'safe by default' behaviour.

closes #1897
closes #1965
2020-05-29 20:28:22 +02:00
Richard Hodges
d7f1426f34 Fix basic_stream expires_after (API Change):
API Changes:

basic_stream::expires_after used to take a nanosecond duration type argument. This
required users on systems where the steady_clock::duration_type was less accurate
to explicity duration_cast when calling this function, making code non-portable.
The duration type is now that of the embedded steady_clock.

Many thanks to @spdw for noticing this and providing a patch.

fixes #1943
closes #1960
2020-05-29 17:16:32 +02:00
Richard Hodges
73097d3bd3 Fix std::FILE namespace qualification
refs #1944
closes #1962
2020-05-29 16:41:56 +02:00
Richard Hodges
adb1419ebd Set version to 294
closes #1957
closes #1945
2020-05-20 15:54:55 +02:00
Edward Diener
871e439ac1 Fix FILE namespace qualification
fixes #1944
2020-05-20 15:54:55 +02:00
Richard Hodges
1054661723 Fix http read bytes_transferred (API Change)
fixes #1942
2020-05-20 15:54:52 +02:00
Richard Hodges
fc7c645f64 Set version to 293
closes #1932
closes #1938
closes #1933
closes #1939
2020-05-04 18:48:15 +02:00
Richard Hodges
42bd4d4d18 Reduce dependencies of buffers_prefix
closes #1940
2020-05-04 18:48:15 +02:00
Richard Hodges
27ce598bad No automatic User-Agent in WebSocket
fixes #1935
2020-05-04 18:47:06 +02:00
Richard Hodges
4be7c5aec3 Fix async_connect documentation
resolves #1903
2020-05-04 18:47:03 +02:00
Richard Hodges
438c238ab9 Comment move behaviour of basic_stream
resolves #1917
2020-05-04 10:58:54 +02:00
Richard Hodges
0cc3acdb83 Fix assert in websocket
fixes #1931
2020-05-04 10:58:26 +02:00
Richard Hodges
379cbefc39 Set version to 292 2020-05-01 07:08:31 +02:00
Richard Hodges
638e2d1244 Fix compilation errors with msvc /std:c++latest
fixes #1916
fixes #1925
2020-05-01 07:08:31 +02:00
Richard Hodges
fda558e034 Fix standalone compilation error with std::string_view
fixes #1913
2020-04-30 21:00:00 +02:00
Richard Hodges
a4b5cd8473 Fix c++20 deprecation warning in span_body
resolves #1924
2020-04-30 16:54:27 +02:00
Richard Hodges
83fc0018a8 Set version to 291 2020-04-28 20:48:03 +02:00
Richard Hodges
d016ff52af Fix all async initiating functions with use_awaitable:
Add trait:
    is_completion_token_for

Fixes for
    buffered_read_stream

Add tests for
    basic_stream
    buffered_read_stream
    flat_stream
    http (all)
    websocket (all)

resolves #1920
2020-04-28 20:48:00 +02:00
Richard Hodges
24cc4a7aee Fix async_detect_ssl with use_awaitable
fixes #1918
2020-04-28 20:45:13 +02:00
Richard Hodges
f5064e0c46 Set version to 290 2020-04-20 08:09:15 -07:00
Richard Hodges
3c6600c8f4 Set Version to 289 2020-04-08 15:58:16 +02:00
Richard Hodges
d12dcef52c Fix Content-Length parsing
Fix #1880
2020-03-19 16:21:29 +01:00
Richard Hodges
5e9e517dc5 Set version to 288 2020-03-18 15:55:03 +01:00
Richard Hodges
7e48270c1b Set version to 287 2020-03-17 16:08:11 +01:00
Richard Hodges
570eafcd40 Ensure basic_stream::close will not throw
refs: #1875
2020-03-17 16:06:41 +01:00
Richard Hodges
929b15f844 Correct buffer_bytes documentation
ref #1854
2020-03-17 16:02:53 +01:00
Richard Hodges
c08e636711 Refactor websocket read:
Some readability improvements

ref #1618
2020-03-17 16:02:32 +01:00
Richard Hodges
c8a726f962 Set version to 286
close #1861, close #1862, close #1864, close #1845, close #1866
2020-02-29 11:05:44 -08:00
Cristian Morales Vega
75da7a522e Fix ostream flush:
fix #1853, close #1859, close #1866

After calling the DynamicBuffer commit() function the
buffer returned from prepare() can be invalidated but
the ostream kept using it.
2020-02-29 10:43:20 -08:00
Vinnie Falco
f5273300f9 Field digest is endian-independent:
fix #1863
close #1864

* Added some comments
* Add 64-bit specific calculation
* Fix endian-dependence in digest
2020-02-29 10:43:05 -08:00
Cristian Morales Vega
2c2e2c0812 detail::ostream_buffer is final:
The Clang Static Analyzer was complaining about the fact the destructor
calls a virtual function. This silences it.

close #1862
2020-02-29 10:43:05 -08:00
Richard Hodges
5a82673089 Add missing include 2020-02-29 10:43:00 -08:00
Richard Hodges
ea078cfcdb Refactor flat_static_buffer 2020-02-29 10:43:00 -08:00
Richard Hodges
25c8fb4714 Refactor flat_buffer 2020-02-29 10:43:00 -08:00