struct mrpt::comms::net::HttpRequestOptions

Overview

#include <mrpt/comms/net_utils.h>

struct HttpRequestOptions
{
    // fields

    int port = 80;
    string auth_user;
    string auth_pass;
    std::map<std::string, std::string> extra_headers;
    int timeout_ms = 1000;
};

Fields

string auth_user

Send a basic HTTP authorization request with the given user & password.

std::map<std::string, std::string> extra_headers

Additional HTTP headers to send.