pianod2
multisource multiuser scriptable networked music player
Public Member Functions | Public Attributes | List of all members
HttpClient::Request Struct Reference

#include <httpclient.h>

Public Member Functions

void dump (std::ostream &=std::cerr) const
 Log request details to a file/stream. More...
 

Public Attributes

bool debug {false}
 
long timeout {0}
 
RequestType type {RequestType::Get}
 
std::string URL
 
std::string proxy
 
StringDict parameters
 
StringDict headers
 
StringDict cookies
 
std::string user_agent
 
std::string body
 

Member Function Documentation

◆ dump()

void HttpClient::Request::dump ( std::ostream &  target = std::cerr) const

Log request details to a file/stream.

Parameters
targetStream to which to send the details.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ body

std::string HttpClient::Request::body

◆ cookies

StringDict HttpClient::Request::cookies

◆ debug

bool HttpClient::Request::debug {false}
mutable

◆ headers

StringDict HttpClient::Request::headers

◆ parameters

StringDict HttpClient::Request::parameters

◆ proxy

std::string HttpClient::Request::proxy

◆ timeout

long HttpClient::Request::timeout {0}

◆ type

RequestType HttpClient::Request::type {RequestType::Get}

◆ URL

std::string HttpClient::Request::URL

◆ user_agent

std::string HttpClient::Request::user_agent

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