@@ -1097,51 +1097,6 @@ class Client {
1097
1097
#endif
1098
1098
}; // namespace httplib
1099
1099
1100
- inline void Get (std::vector<Request> &requests, const char *path,
1101
- const Headers &headers) {
1102
- Request req;
1103
- req.method = " GET" ;
1104
- req.path = path;
1105
- req.headers = headers;
1106
- requests.emplace_back (std::move (req));
1107
- }
1108
-
1109
- inline void Get (std::vector<Request> &requests, const char *path) {
1110
- Get (requests, path, Headers ());
1111
- }
1112
-
1113
- inline void Post (std::vector<Request> &requests, const char *path,
1114
- const Headers &headers, const std::string &body,
1115
- const char *content_type) {
1116
- Request req;
1117
- req.method = " POST" ;
1118
- req.path = path;
1119
- req.headers = headers;
1120
- if (content_type) { req.headers .emplace (" Content-Type" , content_type); }
1121
- req.body = body;
1122
- requests.emplace_back (std::move (req));
1123
- }
1124
-
1125
- inline void Post (std::vector<Request> &requests, const char *path,
1126
- const std::string &body, const char *content_type) {
1127
- Post (requests, path, Headers (), body, content_type);
1128
- }
1129
-
1130
- inline void Post (std::vector<Request> &requests, const char *path,
1131
- size_t content_length, ContentProvider content_provider,
1132
- const char *content_type) {
1133
- Request req;
1134
- req.method = " POST" ;
1135
- req.headers = Headers ();
1136
- req.path = path;
1137
- req.content_length = content_length;
1138
- req.content_provider = content_provider;
1139
-
1140
- if (content_type) { req.headers .emplace (" Content-Type" , content_type); }
1141
-
1142
- requests.emplace_back (std::move (req));
1143
- }
1144
-
1145
1100
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
1146
1101
class SSLServer : public Server {
1147
1102
public:
0 commit comments