File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
boost/network/protocol/http/impl Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,18 @@ namespace http {
63
63
: uri_(uri_)
64
64
{ }
65
65
66
+ explicit basic_request (boost::network::uri::uri const & uri_)
67
+ : uri_(uri_)
68
+ { }
69
+
66
70
void uri (string_type const & new_uri) {
67
71
uri_ = new_uri;
68
72
}
69
73
74
+ void uri (boost::network::uri::uri const & new_uri) {
75
+ uri_ = new_uri;
76
+ }
77
+
70
78
basic_request ()
71
79
: base_type()
72
80
{ }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ int main(int argc, char * argv[]) {
31
31
std::cout << " Searching Twitter for query: " << argv[1 ] << std::endl;
32
32
uri::uri search_1;
33
33
search_1 << search_uri << uri::query (" q" , uri::encoded (argv[1 ]));
34
- http::client::request request (search_1. string () );
34
+ http::client::request request (search_1);
35
35
http::client::response response = client.get (request);
36
36
37
37
std::cout << body (response) << std::endl;
You can’t perform that action at this time.
0 commit comments