Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f0739c

Browse files
committed
Adding overloads to client facade.
1 parentb3c3471 commit1f0739c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎boost/network/protocol/http/client/facade.hpp‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ namespace boost { namespace network { namespace http {
6363
return pimpl->request_skeleton(request,"POST",true, body_handler);
6464
}
6565

66+
responseconstpost(requestconst &request, body_callback_function callback) {
67+
returnpost(request,string_type(),string_type(), callback);
68+
}
69+
70+
responseconstpost(requestconst &request, string_typeconst &body, body_callback_function callback) {
71+
returnpost(request, body,string_type(), callback);
72+
}
73+
6674
responseconstput(request request, string_typeconst &body = string_type(), string_typeconst &content_type = string_type(), body_callback_function_type body_handler = body_callback_function_type()) {
6775
if (body !=string_type()) {
6876
request <<remove_header("Content-Length")
@@ -89,6 +97,14 @@ namespace boost { namespace network { namespace http {
8997
return pimpl->request_skeleton(request,"DELETE",true, body_handler);
9098
}
9199

100+
responseconstput(requestconst& request, body_callback_function_type callback) {
101+
returnput(request,string_type(),string_type(), callback);
102+
}
103+
104+
responseconstput(requestconst& request, string_type body, body_callback_function_type callback) {
105+
returnput(request, body,string_type(), callback);
106+
}
107+
92108
voidclear_resolved_cache() {
93109
pimpl->clear_resolved_cache();
94110
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp