Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Public Attributes | List of all members
HttpRequest Struct Reference

#include <http_client.h>

Public Member Functions

 HttpRequest (const char *url="", const std::string &method="GET")
 

Public Attributes

const char * url = ""
 URL to send the request to. More...
 
std::string method = "GET"
 HTTP method (GET, POST, PUT, PATCH, DELETE). More...
 
std::map< std::string, std::string > headers
 
std::string body
 Request body for POST/PUT requests. More...
 

Constructor & Destructor Documentation

◆ HttpRequest()

HttpRequest::HttpRequest ( const char *  url = "",
const std::string &  method = "GET" 
)
inlineexplicit

Member Data Documentation

◆ body

std::string HttpRequest::body

Request body for POST/PUT requests.

◆ headers

std::map<std::string, std::string> HttpRequest::headers

◆ method

std::string HttpRequest::method = "GET"

HTTP method (GET, POST, PUT, PATCH, DELETE).

◆ url

const char* HttpRequest::url = ""

URL to send the request to.


The documentation for this struct was generated from the following file: