Ivan Vilata-i-Balaguer
edd162cf3b
Add Access-Control-Expose-Headers field constant:
...
This response header is described both in [CORS](https://www.w3.org/TR/cors/ )
and [Fetch](https://fetch.spec.whatwg.org/ ) specifications.
2018-03-09 09:29:14 -08:00
Vinnie Falco
5eaa2be85e
Tidy up calls to post()
2018-03-04 13:19:17 -08:00
Vinnie Falco
726118468b
Add asio_handler_invoke overloads for stream algorithms:
...
fix #1012
This fixes a bug where asynchronous stream alogrithms do not
work correctly with the legacy `io_service::strand` implementation.
2018-03-01 08:31:57 -08:00
Vinnie Falco
073b53e448
Fix handler parameter javadocs
2018-02-28 15:04:54 -08:00
Vinnie Falco
dfc5a2ff67
Add move-only handler tests
2018-02-28 15:04:54 -08:00
Vinnie Falco
5d5e58c5b4
Some basic_fields operations now give the strong exception guarantee
2018-02-26 17:09:47 -08:00
Vinnie Falco
9f094518bc
Safe treatment of zero-length string arguments in basic_fields:
...
This fixes a broken memcpy precondition when empty strings are
passed as arguments to basic_fields member functions.
2018-02-26 17:09:20 -08:00
Vinnie Falco
8dcc6162c1
Tidy up end_of_stream javadoc
...
fix #1023
2018-02-21 08:45:08 -08:00
Benjamin Roland Buch
b7750de15f
Fix fallthrough warnings
...
fix #1019
2018-02-16 10:51:28 -08:00
Vinnie Falco
d855bdefd8
Type check completion handlers
...
fix #988
2018-01-26 08:58:19 -08:00
Peter Jankuliak
4fb535ece6
Fix iterator version of basic_fields::erase
...
fix #994
2018-01-25 06:02:43 -08:00
Vinnie Falco
ad42096a9d
Avoid string_view::clear:
...
String views are cleared using assignment from
braced initializion, to avoid calling clear().
2018-01-25 06:02:42 -08:00
Paul "TBBle" Hampson
0efc246466
Use boost::winapi::GetLastError() consistently:
...
This replaces a few direct calls to ::GetLastError, and also removes a
couple of duplicate calls when the value was already held locally.
2018-01-12 12:30:39 -08:00
Vinnie Falco
3546eff033
Remove BOOST_VERSION checks
...
fix #722
2018-01-12 12:30:39 -08:00
Vinnie Falco
cccb6a07fc
http::parser is not MoveConstructible (API Change)
2017-12-30 06:08:28 -08:00
Damian Jarek
b76ab4450a
New BodyReader and BodyWriter constructors (API Change):
...
fix #884
* BodyReader and BodyWriter constructors now require the header and
body elements to be passed as distinct header and value_type objects.
This enables the composition of body types, for example:
http::response<compressed_body<http::string_body>> res;
* The previous single-argument constructors are deprecated and will be
removed in a subsequent version.
Actions Required:
* Change user-defined instances of BodyReader or BodyWriter constructor
signatures to the two-argument form.
OR
* Define the macro BOOST_BEAST_ALLOW_DEPRECATED in the project (which
will accept both the new and the deprecated signatures).
2017-12-15 09:27:39 -08:00
Vinnie Falco
d796319476
serializer::reader_impl is deprecated:
...
fix #930
* The function serializer::reader_impl is deprecated and will
be removed in a subsequent version.
* Some private symbols used in the implementation were
also renamed to reflect correct terminology.
Actions Required:
* Call serializer::writer_impl instead of reader_impl
2017-12-14 13:13:10 -08:00
Damian Jarek
285965d82e
handler_ptr gives the strong exception guarantee (API Change):
...
* The handler_ptr constructor now provides the
strong exception guarantee.
* The signature for managed objects constructed by
`handler_ptr` receives a const reference to the handler.
Actions required:
* Change the constructor signature for state objects
used with handler_ptr to receive a const reference to
the handler.
2017-12-08 10:58:46 -08:00
Damian Jarek
200e898f7e
Don't copy completion handlers:
...
All asynchronous operations will now be able to use move-only
CompletionHandlers.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2017-12-04 12:14:40 -08:00
Vinnie Falco
eb0cc97e1a
Protect calls from macros
...
fix #918
2017-12-04 12:14:11 -08:00
Vinnie Falco
13b9d1bd92
built-in r-value return values can't be assigned:
...
This fixes the following warning:
warning: ‘const’ type qualifier on return type has no effect [-Wignored-qualifiers]
2017-12-04 12:14:09 -08:00
Damian Jarek
190d20e3a8
Tidy up basic_fields exception specifiers
...
fix #894
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2017-11-28 04:51:18 -08:00
Vinnie Falco
25c5f2e844
basic_fields does not support fancy pointers
...
fix #896
2017-11-20 12:12:06 -08:00
Vinnie Falco
110a0d52e2
null_buffers is deprecated
2017-11-20 11:48:57 -08:00
Vinnie Falco
75fcea69ee
Refactor HTTP async read composed operations
...
fix #810
2017-11-18 19:47:35 -08:00
Vinnie Falco
5ae15432b8
Refactor basic_fields allocator internals:
...
fix #857
* Use empty base optimization to store the allocator
* Rebind to a smaller aligned type to reduce waste
2017-11-18 18:14:15 -08:00
Vinnie Falco
a55e67b94f
Rename some detail functions
2017-11-18 18:14:14 -08:00
Vinnie Falco
99d6d35c62
Tidy up some documentation
...
fix #880 , fix #881
2017-11-10 16:41:14 -08:00
Vinnie Falco
ff2dc67afa
Some basic_fields special members are protected
2017-11-08 20:13:09 -08:00
Damian Jarek
0f7670b7e0
Tidy up basic_parser:
...
- Add const qualifiers.
- Fix parser conversion constructor not copying header_limit_ and status_ fields.
- Use default special member functions when possible.
- Zero-initialize non-class members.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2017-11-08 20:13:09 -08:00
Casey Bodley
f96785df4f
Fix signature for async_read_some, and tests
...
Signed-off-by: Casey Bodley <cbodley@redhat.com >
2017-11-08 19:58:46 -08:00
Vinnie Falco
2ed1d9affb
Fix some integer warnings in 64-bit builds
2017-11-07 07:10:31 -08:00
Sergey M․
8e75ed26d1
Revisit boost library min/max guidance
...
refs #170
2017-11-05 13:03:09 -08:00
Vinnie Falco
120617f438
Tidy up some documentation
2017-11-05 09:29:33 -08:00
Vinnie Falco
d9d2b23b57
ConstBufferSequence mandates pointer equivalence
...
fix #865
2017-11-03 19:34:30 -07:00
Vinnie Falco
5177d729a7
Remove const&& overload of message::body
2017-10-31 14:43:10 -07:00
Vinnie Falco
895c9fa7ed
BodyReader and BodyWriter names are swapped (API Change):
...
Body::reader and Body::writer meanings are reversed, for
consistency with the names of the stream operations:
* Body::reader is used for read, read_some, async_read, async_read_some
* Body::writer is used for write, write_some, async_write, async_write_some
Actions Required:
* Swap the reader and writer names for user defined Body types
* Swap use of is_body_reader and is_body_writer
2017-10-30 18:13:40 -07:00
Vinnie Falco
101023553e
Fields::writer replaces Fields::reader (API Change):
...
* Fields::writer replaces Fields::reader
* The FieldsWriter concept is renamed from FieldsReader
Actions Required:
* Rename reader to writer for user defined Fields
2017-10-30 17:53:59 -07:00
Vinnie Falco
23bf8638ab
Add ref-qualified overloads for message::body
2017-10-30 15:23:43 -07:00
Vinnie Falco
c5a1615301
basic_fields returns const values
2017-10-29 06:45:33 -07:00
Vinnie Falco
970daa340a
Tidy up fallthrough warning
2017-10-27 17:03:44 -07:00
Vinnie Falco
597802c38a
Fix prepare_payload: chunked is HTTP/1.1
2017-10-27 11:16:10 -07:00
Vinnie Falco
b5389ba5f2
Documentation tidying
...
fix #836
2017-10-27 11:16:09 -07:00
Vinnie Falco
1754d5427d
Add message::need_eof
2017-10-25 18:41:04 -07:00
Vinnie Falco
5c14ab9f7c
Rename some basic_parser observers (API Change):
...
Some `basic_parser` member functions are renamed:
* chunked() was is_chunked()
* upgrade() was is_upgrade()
* keep_alive() was is_keep_alive()
Actions Required:
* Rename member function invocations at call sites
2017-10-25 18:04:54 -07:00
Vinnie Falco
6225c5bd2f
Add has_content_length_impl to Fields (API Change):
...
* The function has_content_length_impl is added to the
requirements of Fields.
Actions Required:
* Implement has_content_length_impl for user-defined Fields
2017-10-25 17:58:45 -07:00
Vinnie Falco
feb525f829
Remove serializer::chunked (API Change):
...
* The function serializer::chunked is removed,
since it is redundant.
Actions Required:
* Call serializer::get::chunked instead of serializer::chunked
2017-10-25 17:09:04 -07:00
Vinnie Falco
129c7d8b78
Remove serializer::keep_alive (API Change):
...
* The serializer::keep_alive function is removed
Actions Required:
* Call message::keep_alive instead of serializer::keep_alive
2017-10-25 17:09:03 -07:00
Andrey Semashev
ab2a225a9a
Update Boost.WinAPI usage to the new location and namespace.
2017-10-24 13:32:50 -07:00
Vinnie Falco
41e61a7458
Fix executor type compilation
2017-10-24 09:33:29 -07:00