parent
23121835f2
commit
6b7b428e71
@ -58,12 +58,12 @@ public:
|
||||
|
||||
enum class HttpMethod
|
||||
{
|
||||
GET,
|
||||
HEAD,
|
||||
POST,
|
||||
PUT,
|
||||
DELETE,
|
||||
PATCH,
|
||||
Get,
|
||||
Head,
|
||||
Post,
|
||||
Put,
|
||||
Delete,
|
||||
Patch,
|
||||
};
|
||||
|
||||
class Request
|
||||
|
||||
@ -13,7 +13,7 @@ using namespace azure::core;
|
||||
|
||||
TEST(Http_Request, getters)
|
||||
{
|
||||
http::HttpMethod httpMethod = http::HttpMethod::GET;
|
||||
http::HttpMethod httpMethod = http::HttpMethod::Get;
|
||||
std::string url = "http://test.url.com";
|
||||
http::Request req(httpMethod, url);
|
||||
|
||||
@ -90,7 +90,7 @@ TEST(Http_Request, getters)
|
||||
|
||||
TEST(Http_Request, query_parameter)
|
||||
{
|
||||
http::HttpMethod httpMethod = http::HttpMethod::PUT;
|
||||
http::HttpMethod httpMethod = http::HttpMethod::Put;
|
||||
std::string url = "http://test.com";
|
||||
http::Request req(httpMethod, url);
|
||||
|
||||
@ -123,7 +123,7 @@ TEST(Http_Request, query_parameter)
|
||||
|
||||
TEST(Http_Request, add_path)
|
||||
{
|
||||
http::HttpMethod httpMethod = http::HttpMethod::POST;
|
||||
http::HttpMethod httpMethod = http::HttpMethod::Post;
|
||||
std::string url = "http://test.com";
|
||||
http::Request req(httpMethod, url);
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ int main()
|
||||
string host("https://httpbin.org/get");
|
||||
cout << "testing curl from transport" << endl << "Host: " << host << endl;
|
||||
|
||||
auto request = http::Request(http::HttpMethod::GET, host);
|
||||
auto request = http::Request(http::HttpMethod::Get, host);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user