]>
Commit | Line | Data |
---|---|---|
b32b8144 FG |
1 | // |
2 | // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com) | |
3 | // | |
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | // | |
7 | // Official repository: https://github.com/boostorg/beast | |
8 | // | |
9 | ||
10 | #ifndef BOOST_BEAST_WEBSOCKET_DETAIL_TYPE_TRAITS_HPP | |
11 | #define BOOST_BEAST_WEBSOCKET_DETAIL_TYPE_TRAITS_HPP | |
12 | ||
13 | #include <boost/beast/websocket/rfc6455.hpp> | |
14 | #include <boost/beast/core/detail/type_traits.hpp> | |
15 | ||
16 | namespace boost { | |
17 | namespace beast { | |
18 | namespace websocket { | |
19 | namespace detail { | |
20 | ||
21 | template<class F> | |
11fdf7f2 | 22 | using is_request_decorator = |
b32b8144 FG |
23 | typename beast::detail::is_invocable<F, |
24 | void(request_type&)>::type; | |
25 | ||
26 | template<class F> | |
11fdf7f2 | 27 | using is_response_decorator = |
b32b8144 FG |
28 | typename beast::detail::is_invocable<F, |
29 | void(response_type&)>::type; | |
30 | ||
31 | } // detail | |
32 | } // websocket | |
33 | } // beast | |
34 | } // boost | |
35 | ||
36 | #endif |