DynXX-Cxx
Loading...
Searching...
No Matches
Classes | Enumerations | Functions | Variables
Net.hxx File Reference
#include "Types.hxx"
#include <cstdio>

Go to the source code of this file.

Classes

struct  DynXXHttpResponse
 

Enumerations

enum class  DynXXHttpMethodX : uint8_t { Get , Post , Put }
 

Functions

 AssertMove (DynXXHttpResponse)
 
DynXXHttpResponse dynxxNetHttpRequest (std::string_view url, DynXXHttpMethodX method, std::string_view params, BytesView rawBody={}, const std::vector< std::string > &headerV={}, const std::vector< std::string > &formFieldNameV={}, const std::vector< std::string > &formFieldMimeV={}, const std::vector< std::string > &formFieldDataV={}, std::FILE *cFILE=nullptr, size_t fileSize=0, size_t timeout=DynXXHttpDefaultTimeout)
 
DynXXHttpResponse dynxxNetHttpRequest (std::string_view url, DynXXHttpMethodX method, const DictAny &params, BytesView rawBody={}, const Dict &headers={}, const std::vector< std::string > &formFieldNameV={}, const std::vector< std::string > &formFieldMimeV={}, const std::vector< std::string > &formFieldDataV={}, std::FILE *cFILE=nullptr, size_t fileSize=0, size_t timeout=DynXXHttpDefaultTimeout)
 
bool dynxxNetHttpDownload (std::string_view url, std::string_view filePath, size_t timeout=DynXXHttpDefaultTimeout)
 

Variables

constexpr auto DynXXHttpDefaultTimeout = 15 * 1000
 

Enumeration Type Documentation

◆ DynXXHttpMethodX

Enumerator
Get 
Post 
Put 

Function Documentation

◆ AssertMove()

AssertMove ( DynXXHttpResponse  )

◆ dynxxNetHttpDownload()

bool dynxxNetHttpDownload ( std::string_view  url,
std::string_view  filePath,
size_t  timeout = DynXXHttpDefaultTimeout 
)

◆ dynxxNetHttpRequest() [1/2]

DynXXHttpResponse dynxxNetHttpRequest ( std::string_view  url,
DynXXHttpMethodX  method,
const DictAny params,
BytesView  rawBody = {},
const Dict headers = {},
const std::vector< std::string > &  formFieldNameV = {},
const std::vector< std::string > &  formFieldMimeV = {},
const std::vector< std::string > &  formFieldDataV = {},
std::FILE cFILE = nullptr,
size_t  fileSize = 0,
size_t  timeout = DynXXHttpDefaultTimeout 
)

◆ dynxxNetHttpRequest() [2/2]

DynXXHttpResponse dynxxNetHttpRequest ( std::string_view  url,
DynXXHttpMethodX  method,
std::string_view  params,
BytesView  rawBody = {},
const std::vector< std::string > &  headerV = {},
const std::vector< std::string > &  formFieldNameV = {},
const std::vector< std::string > &  formFieldMimeV = {},
const std::vector< std::string > &  formFieldDataV = {},
std::FILE cFILE = nullptr,
size_t  fileSize = 0,
size_t  timeout = DynXXHttpDefaultTimeout 
)

Variable Documentation

◆ DynXXHttpDefaultTimeout

constexpr auto DynXXHttpDefaultTimeout = 15 * 1000
constexpr