Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 38a7706

Browse files
committed
Removed old Keep-Alive functions
1 parent abaf875 commit 38a7706

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

httplib.h

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,51 +1097,6 @@ class Client {
10971097
#endif
10981098
}; // namespace httplib
10991099

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-
11451100
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
11461101
class SSLServer : public Server {
11471102
public:

0 commit comments

Comments
 (0)