-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequests.hpp
19 lines (14 loc) · 913 Bytes
/
requests.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <string>
#include <vector>
#ifndef _REQUESTS_
#define _REQUESTS_
// computes and returns a GET request string (query_params
// and cookies can be set to NULL if not needed)
std::string compute_get_request(std::string host, std::string url, std::string query_params, std::string authToken,
std::vector<std::string> cookies, int cookies_count);
// computes and returns a POST request string (cookies can be NULL if not needed)
std::string compute_post_request(std::string host, std::string url, std::string authToken, std::string content_type, std::string body_data,
int body_data_fields_count, std::vector<std::string> cookies, int cookies_count);
std::string compute_delete_request(std::string host, std::string url, std::string authToken, std::string content_type, std::string body_data,
int body_data_fields_count, std::vector<std::string> cookies, int cookies_count);
#endif