products_log 1.0.0
C++ client library for the Products REST API (usage statistics)
Loading...
Searching...
No Matches
products_log::HttpRequest Struct Reference

HTTP-запрос, описывающий обращение к Products API. More...

#include <products_log.h>

Public Attributes

std::string method
 "GET" или "POST".
 
std::string url
 Полный URL (путь уже URL-закодирован).
 
std::string body
 Тело запроса (для POST).
 
std::string username
 Basic-auth пользователь (пусто = без авторизации).
 
std::string password
 Basic-auth пароль.
 
int timeout_seconds = 5
 Таймаут запроса в секундах.
 

Detailed Description

HTTP-запрос, описывающий обращение к Products API.

Definition at line 20 of file products_log.h.

Member Data Documentation

◆ body

std::string products_log::HttpRequest::body

Тело запроса (для POST).

Definition at line 23 of file products_log.h.

Referenced by products_log::anonymous_namespace{products_log.cpp}::CurlTransportImpl().

◆ method

◆ password

std::string products_log::HttpRequest::password

Basic-auth пароль.

Definition at line 25 of file products_log.h.

Referenced by products_log::anonymous_namespace{products_log.cpp}::CurlTransportImpl().

◆ timeout_seconds

int products_log::HttpRequest::timeout_seconds = 5

Таймаут запроса в секундах.

Definition at line 26 of file products_log.h.

Referenced by products_log::anonymous_namespace{products_log.cpp}::CurlTransportImpl().

◆ url

std::string products_log::HttpRequest::url

Полный URL (путь уже URL-закодирован).

Definition at line 22 of file products_log.h.

Referenced by products_log::anonymous_namespace{products_log.cpp}::CurlTransportImpl().

◆ username

std::string products_log::HttpRequest::username

Basic-auth пользователь (пусто = без авторизации).

Definition at line 24 of file products_log.h.

Referenced by products_log::anonymous_namespace{products_log.cpp}::CurlTransportImpl().


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