forked from boostorg/beast
This changes the interface used to apply a decorator to the HTTP request or response messages used to perform the WebSocket handshake as follows: * Add the `stream_base::decorator` option object * Add `stream::set_option` overload to set the decorator from the option * The decorator applies to all client and server handshakes performed on the stream after the option is set. * Overloads of the following functions which accept a Decorator are deprecated: - accept, accept_ex - handshake, handshake_ex - async_accept, async_accept_ex - async_handshake, async_handshake_ex Actions Required: * Code which passes decorator to any `websocket::stream` member function should call `stream::set_option` instead with a newly constructed `stream_base::decorator` object containing the decorator. Alternatively, the macro `BOOST_BEAST_ALLOW_DEPRECATED` may be defined to 1.
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
#
|
|
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
# Official repository: https://github.com/boostorg/beast
|
|
#
|
|
|
|
import ac ;
|
|
|
|
project
|
|
: requirements
|
|
[ ac.check-library /boost/beast//ssl : <library>/boost/beast//ssl : <build>no ]
|
|
<library>/boost/beast//crypto
|
|
;
|
|
|
|
alias run-tests :
|
|
[ compile core_snippets.cpp ]
|
|
[ compile http_snippets.cpp ]
|
|
[ compile websocket_snippets.cpp ]
|
|
[ run core_examples.cpp $(TEST_MAIN) ]
|
|
[ run core_1_refresher.cpp $(TEST_MAIN) ]
|
|
[ run core_3_layers.cpp $(TEST_MAIN) ]
|
|
[ run http_examples.cpp $(TEST_MAIN) ]
|
|
[ run websocket_3_handshake.cpp $(TEST_MAIN) ]
|
|
;
|
|
|
|
exe fat-tests :
|
|
$(TEST_MAIN)
|
|
core_examples.cpp
|
|
core_1_refresher.cpp
|
|
core_3_layers.cpp
|
|
http_examples.cpp
|
|
websocket_3_handshake.cpp
|
|
;
|
|
|
|
explicit fat-tests ;
|
|
|
|
run $(TEST_MAIN) $(SOURCES) : : : : run-fat-tests ;
|
|
|
|
explicit run-fat-tests ;
|