Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
http_client.cc File Reference
#include "net/http_client.h"
#include <curl/curl.h>
#include <cstddef>
#include <memory>
#include <string>
#include <utility>
Include dependency graph for http_client.cc:

Namespaces

namespace  mm
 
namespace  mm::net
 

Functions

std::expected< Response, std::string > mm::net::httpGet (const std::string &url, std::chrono::seconds timeout=std::chrono::seconds{ 30})
 Performs a blocking GET.
 
std::expected< Response, std::string > mm::net::httpPost (const std::string &url, const std::string &body, const std::string &contentType, std::chrono::seconds timeout=std::chrono::seconds{ 30})
 Performs a blocking POST.