Instrument Control Lib
Framework to control Oscilloscopes, SMUs, Function Generators and DC Powersupplies via Ethernet.
http::Request Class Referencefinal

#include <HTTPRequest.h>

Collaboration diagram for http::Request:
Collaboration graph

Public Member Functions

 Request (const std::string &uriString, const InternetProtocol protocol=InternetProtocol::v4)
 
Response send (const std::string &method="GET", const std::string &body="", const HeaderFields &headerFields={}, const std::chrono::milliseconds timeout=std::chrono::milliseconds{-1})
 
Response send (const std::string &method, const std::vector< uint8_t > &body, const HeaderFields &headerFields={}, const std::chrono::milliseconds timeout=std::chrono::milliseconds{-1})
 

Constructor & Destructor Documentation

◆ Request()

http::Request::Request ( const std::string &  uriString,
const InternetProtocol  protocol = InternetProtocol::v4 
)
inlineexplicit

Member Function Documentation

◆ send() [1/2]

Response http::Request::send ( const std::string &  method,
const std::vector< uint8_t > &  body,
const HeaderFields headerFields = {},
const std::chrono::milliseconds  timeout = std::chrono::milliseconds{-1} 
)
inline

◆ send() [2/2]

Response http::Request::send ( const std::string &  method = "GET",
const std::string &  body = "",
const HeaderFields headerFields = {},
const std::chrono::milliseconds  timeout = std::chrono::milliseconds{-1} 
)
inline
Here is the caller graph for this function:

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