Mohammad Nejati
827ecf5e93
Organize source files in CMakeLists with source_group
2024-11-25 11:41:40 +03:30
Mohammad Nejati
75e45287fb
Refactor CMakeLists
...
Closes #2471
Closes #1816
2024-11-25 11:41:40 +03:30
Mohammad Nejati
0078272001
Add forward declaration headers
2024-10-17 17:23:08 +03:30
Mohammad Nejati
b1f377b2eb
basic_parser: set state_ before calling on_finish_impl
2024-08-22 00:22:16 +03:30
Mohammad Nejati
a620d4175a
basic_parser: apply header_limit_ to trailer headers
2024-08-22 00:22:16 +03:30
Mohammad Nejati
f181fbf6e4
basic_parser returns error::header_limit ealier
2024-08-22 00:22:16 +03:30
Mohammad Nejati
a9c4a19f26
parser uses basic_fields::insert() with error_code overload
2024-08-22 00:22:16 +03:30
Mohammad Nejati
2e6d9bb491
Add overload for basic_fields::insert() to set error_code
2024-08-22 00:22:16 +03:30
Mohammad Nejati
fee9be0be1
Fix Wattributes warnings in tests
2024-07-12 19:42:15 +03:30
Mohammad Nejati
e7f49190ef
Fix basic_fields move assignment
...
Fixes #2517
2024-06-09 18:23:12 +03:30
Alexander Kernozhitsky
4bff457ef7
Add 418 I'm a teapot HTTP status
2024-06-03 17:59:18 +03:30
Mohammad Nejati
146de67f5e
Fix -Wnonnull warnings
2024-06-01 18:54:19 +03:30
Mohammad Nejati
a11ea6bc72
Fix -Wattributes warnings
2024-06-01 18:54:19 +03:30
Mohammad Nejati
eaaeb8b36b
Fix -Wdangling-reference warnings
2024-06-01 18:54:19 +03:30
Mohammad Nejati
67b615ca29
Add test for partial parsing of the final chunk
2024-05-10 17:28:19 +03:30
Mohammad Nejati
25105e476a
Update status code list to conform with IANA registry
...
https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
Resolves #2729
2024-02-06 18:09:48 +03:30
Mohammad Nejati
6adca47bbe
Fix unused-result warning in deferred.cpp
2024-01-18 22:57:29 +03:30
Mohammad Nejati
9e16754dd5
Add non-allocating overload for error category message function
...
Fixes #2646
2024-01-03 18:21:52 +03:30
Mohammad
45d4f7f306
Replace BOOST_ASIO_INITFN_RESULT_TYPE with BOOST_ASIO_INITFN_AUTO_RESULT_TYPE
...
asio::deferred doesn't work with BOOST_ASIO_INITFN_RESULT_TYPE
Fixes #2727 .
2023-09-05 08:54:08 +03:30
Klemens Morgenstern
42b6387ae4
Fixes for MSVC 2022 issues.
...
Closes #2653 .
2023-03-22 16:11:06 +08:00
Klemens
1d965752b2
beast file_body & file support seek.
...
win32 file_body handles seek correctly.
Added seek to win32 file.
file_body_writer handles offsets.
2023-02-05 02:57:41 +08:00
Klemens Morgenstern
48f82ac817
Switched self-posting to the io-object's executor.
...
This is a conceptual change in the recent asio version that is reflected in any_completion_handler.
2022-12-20 14:45:26 +08:00
Klemens
3ebff60b1a
beast support per-op cancellation
...
- websocket supports cancellation.
- Iterating test for ws cancellation.
- Only terminal cancellation is forwarded by default.
- basic_stream supports cancellation.
- supported cancellation is documented.
- http cancellation additions.
- Added cancellation_slot tests to http, utils and saved_handler.
- Added post to write.cpp, to avoid SIGSEV in test.
- Refresher describes cancellation in more detail.
2022-10-27 22:56:19 +08:00
Klemens
606d776ebb
async_read works with dynamic_buffer v2.
2022-10-14 17:20:15 +08:00
Klemens
01dd53d665
Empty header values are allowed & documented.
2022-10-10 14:39:46 +08:00
alandefreitas
5866e50438
Add multiple content length error
...
fix #2468
2022-10-02 20:04:46 +08:00
sehe
740879a995
Add http::message_generator
2022-05-21 22:12:13 -07:00
Vinnie Falco
6c9e9ea243
Tests are fat binaries
2022-05-21 22:12:13 -07:00
Glen Fernandes
24275ac0c6
Use static_string from Boost.StaticString
2022-04-17 12:30:52 -04:00
Martijn Otto
6ff7beae48
Add missing include for file_body test
...
close #2391
2022-03-09 16:35:24 +01:00
Richard Hodges
355dcfe502
Add individual tests to CMake workflow
...
close #2350
2021-12-09 14:27:18 +01:00
Michael Haubenschild
31a1fb332a
Fix missing check for error code after header is parsed:
...
The missing error check leads to completely ignoring the body limit,
as the body limit is compared to the "Content-Length" header inside
the "finish_header" method.
closes #2201
2021-03-25 15:04:12 +01:00
Richard Hodges
fae4c0e3c2
Parenthesise all uses of min() and max()
2021-03-16 10:02:47 +01:00
Richard Hodges
bea31bfff6
Fix nullptr implicit cast on fields::set()
...
fixes #2085
2020-09-13 16:19:27 +02:00
Richard Hodges
91d9457ab9
Add Sec-* HTTP headers
...
fixes #2080
closes #2082
2020-09-07 17:26:34 +02:00
Richard Hodges
9e6822773e
Fix erroneous error when HTTP body_limit is none
...
fixes #2070
closes #2073
2020-08-28 13:26:59 +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
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
1054661723
Fix http read bytes_transferred (API Change)
...
fixes #1942
2020-05-20 15:54:52 +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
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
d12dcef52c
Fix Content-Length parsing
...
Fix #1880
2020-03-19 16:21:29 +01:00
Richard Hodges
c682eb46e7
Fix warning in test
2020-02-29 10:43:52 -08:00
Richard Hodges
6d10adf936
fix erase field
...
fixes #1828
closes #1829
2020-02-04 18:36:50 +01:00
Richard Hodges
3d168c0336
file body reports short_read on eof
...
fixes #1818
fixes #1815
close #1821
2020-01-28 10:24:44 +01:00
Peter Jankuliak
1abe92f524
Fix leftovers in basic_parser corner case:
...
fix #1734 , close #1736
buf_.get() has size `buf_len_`, but only `size` number of octets in that
buffer is valid.
2019-10-18 05:30:29 -07:00
Vinnie Falco
5f9c14af2e
Fix typo
2019-10-04 18:48:09 -07:00
Vinnie Falco
9efa3fd1c3
Add test for issue 1717
2019-10-04 06:09:50 -07:00
Damian Jarek
63ef7f65bc
Handle overflow in max size calculation in basic_dynamic_body
...
fix #1581
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-07-08 20:28:49 +02:00
Damian Jarek
d5f5f1467f
Enable split compilation in http::basic_fields
...
Moved functions,that are independent of template argument, into
an *.ipp file.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:33 +02:00