@@ -63,6 +63,14 @@ namespace boost { namespace network { namespace http {
63
63
return pimpl->request_skeleton (request, " POST" , true , body_handler);
64
64
}
65
65
66
+ response const post (request const &request, body_callback_function callback) {
67
+ return post (request, string_type (), string_type (), callback);
68
+ }
69
+
70
+ response const post (request const &request, string_type const &body, body_callback_function callback) {
71
+ return post (request, body, string_type (), callback);
72
+ }
73
+
66
74
response const put (request request, string_type const &body = string_type(), string_type const &content_type = string_type(), body_callback_function_type body_handler = body_callback_function_type()) {
67
75
if (body != string_type ()) {
68
76
request << remove_header (" Content-Length" )
@@ -89,6 +97,14 @@ namespace boost { namespace network { namespace http {
89
97
return pimpl->request_skeleton (request, " DELETE" , true , body_handler);
90
98
}
91
99
100
+ response const put (request const & request, body_callback_function_type callback) {
101
+ return put (request, string_type (), string_type (), callback);
102
+ }
103
+
104
+ response const put (request const & request, string_type body, body_callback_function_type callback) {
105
+ return put (request, body, string_type (), callback);
106
+ }
107
+
92
108
void clear_resolved_cache () {
93
109
pimpl->clear_resolved_cache ();
94
110
}
0 commit comments