9
9
// http://www.boost.org/LICENSE_1_0.txt)
10
10
11
11
#include < functional>
12
+ #include < array>
12
13
#include < boost/network/protocol/http/client/connection/connection_delegate_factory.hpp>
13
14
#include < boost/network/protocol/http/response.hpp>
14
15
#include < boost/network/protocol/http/traits/delegate_factory.hpp>
15
16
#include < boost/network/protocol/http/client/connection/async_normal.hpp>
16
17
#include < boost/network/protocol/http/traits/resolver_policy.hpp>
18
+ #include < boost/network/traits/string.hpp>
17
19
18
20
namespace boost {
19
21
namespace network {
@@ -29,7 +31,8 @@ struct async_connection_base {
29
31
typedef typename string<Tag>::type string_type;
30
32
typedef basic_request<Tag> request;
31
33
typedef basic_response<Tag> response;
32
- typedef iterator_range<char const *> char_const_range;
34
+ typedef typename std::array<typename char_<Tag>::type,1024 >::const_iterator const_iterator;
35
+ typedef iterator_range<const_iterator> char_const_range;
33
36
typedef std::function<void (char_const_rangeconst &, std::error_codeconst &)>
34
37
body_callback_function_type;
35
38
typedef std::function<bool (string_type &)> body_generator_function_type;