#include <http.h>
|
static constexpr const char * | GetRequestType (REQUEST Type) |
|
static int | ProgressCallback (void *pUser, double DlTotal, double DlCurr, double UlTotal, double UlCurr) |
|
static size_t | HeaderCallback (char *pData, size_t Size, size_t Number, void *pUser) |
|
static size_t | WriteCallback (char *pData, size_t Size, size_t Number, void *pUser) |
|
◆ REQUEST
Enumerator |
---|
GET | |
HEAD | |
POST | |
POST_JSON | |
◆ CHttpRequest()
CHttpRequest::CHttpRequest |
( |
const char * |
pUrl | ) |
|
◆ ~CHttpRequest()
CHttpRequest::~CHttpRequest |
( |
| ) |
|
|
virtual |
◆ Abort()
void CHttpRequest::Abort |
( |
| ) |
|
|
inline |
◆ BeforeInit()
bool CHttpRequest::BeforeInit |
( |
| ) |
|
|
private |
◆ ConfigureHandle()
bool CHttpRequest::ConfigureHandle |
( |
void * |
pHandle | ) |
|
|
private |
◆ Current()
double CHttpRequest::Current |
( |
| ) |
const |
|
inline |
◆ Dest()
const char * CHttpRequest::Dest |
( |
| ) |
|
|
inline |
◆ Done()
bool CHttpRequest::Done |
( |
| ) |
const |
|
inline |
◆ ExpectSha256()
◆ FailOnErrorStatus()
void CHttpRequest::FailOnErrorStatus |
( |
bool |
FailOnErrorStatus | ) |
|
|
inline |
◆ GetRequestType()
static constexpr const char * CHttpRequest::GetRequestType |
( |
REQUEST |
Type | ) |
|
|
inlinestaticconstexprprivate |
◆ Head()
void CHttpRequest::Head |
( |
| ) |
|
|
inline |
◆ Header()
void CHttpRequest::Header |
( |
const char * |
pNameColonValue | ) |
|
◆ HeaderCallback()
size_t CHttpRequest::HeaderCallback |
( |
char * |
pData, |
|
|
size_t |
Size, |
|
|
size_t |
Number, |
|
|
void * |
pUser |
|
) |
| |
|
staticprivate |
◆ HeaderInt()
void CHttpRequest::HeaderInt |
( |
const char * |
pName, |
|
|
int |
Value |
|
) |
| |
|
inline |
◆ HeaderString()
void CHttpRequest::HeaderString |
( |
const char * |
pName, |
|
|
const char * |
pValue |
|
) |
| |
|
inline |
◆ IfModifiedSince()
void CHttpRequest::IfModifiedSince |
( |
int64_t |
IfModifiedSince | ) |
|
|
inline |
◆ IpResolve()
void CHttpRequest::IpResolve |
( |
IPRESOLVE |
IpResolve | ) |
|
|
inline |
◆ LogProgress()
void CHttpRequest::LogProgress |
( |
HTTPLOG |
LogProgress | ) |
|
|
inline |
◆ MaxResponseSize()
void CHttpRequest::MaxResponseSize |
( |
int64_t |
MaxResponseSize | ) |
|
|
inline |
◆ OnCompletion()
virtual void CHttpRequest::OnCompletion |
( |
EHttpState |
State | ) |
|
|
inlineprotectedvirtual |
◆ OnCompletionInternal()
void CHttpRequest::OnCompletionInternal |
( |
void * |
pHandle, |
|
|
unsigned int |
Result |
|
) |
| |
|
private |
◆ OnData()
size_t CHttpRequest::OnData |
( |
char * |
pData, |
|
|
size_t |
DataSize |
|
) |
| |
|
private |
◆ OnHeader()
size_t CHttpRequest::OnHeader |
( |
char * |
pHeader, |
|
|
size_t |
HeaderSize |
|
) |
| |
|
private |
◆ OnProgress()
virtual void CHttpRequest::OnProgress |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ Post()
void CHttpRequest::Post |
( |
const unsigned char * |
pData, |
|
|
size_t |
DataLength |
|
) |
| |
|
inline |
◆ PostJson()
void CHttpRequest::PostJson |
( |
const char * |
pJson | ) |
|
|
inline |
◆ Progress()
int CHttpRequest::Progress |
( |
| ) |
const |
|
inline |
◆ ProgressCallback()
int CHttpRequest::ProgressCallback |
( |
void * |
pUser, |
|
|
double |
DlTotal, |
|
|
double |
DlCurr, |
|
|
double |
UlTotal, |
|
|
double |
UlCurr |
|
) |
| |
|
staticprivate |
◆ Result()
void CHttpRequest::Result |
( |
unsigned char ** |
ppResult, |
|
|
size_t * |
pResultLength |
|
) |
| const |
◆ ResultAgeSeconds()
std::optional< int64_t > CHttpRequest::ResultAgeSeconds |
( |
| ) |
const |
◆ ResultJson()
◆ ResultLastModified()
std::optional< int64_t > CHttpRequest::ResultLastModified |
( |
| ) |
const |
◆ ResultSha256()
◆ Size()
double CHttpRequest::Size |
( |
| ) |
const |
|
inline |
◆ State()
◆ StatusCode()
int CHttpRequest::StatusCode |
( |
| ) |
const |
◆ Timeout()
void CHttpRequest::Timeout |
( |
CTimeout |
Timeout | ) |
|
|
inline |
◆ Wait()
void CHttpRequest::Wait |
( |
| ) |
|
◆ WriteCallback()
size_t CHttpRequest::WriteCallback |
( |
char * |
pData, |
|
|
size_t |
Size, |
|
|
size_t |
Number, |
|
|
void * |
pUser |
|
) |
| |
|
staticprivate |
◆ WriteToFile()
void CHttpRequest::WriteToFile |
( |
IStorage * |
pStorage, |
|
|
const char * |
pDest, |
|
|
int |
StorageType |
|
) |
| |
◆ CHttp
◆ m_Abort
std::atomic<bool> CHttpRequest::m_Abort {false} |
|
private |
◆ m_ActualSha256
◆ m_ActualSha256Ctx
SHA256_CTX CHttpRequest::m_ActualSha256Ctx |
|
private |
◆ m_aDest
◆ m_aDestAbsolute
◆ m_aErr
char CHttpRequest::m_aErr[256] |
|
private |
◆ m_aUrl
char CHttpRequest::m_aUrl[256] = {0} |
|
private |
◆ m_BodyLength
size_t CHttpRequest::m_BodyLength = 0 |
|
private |
◆ m_BufferSize
size_t CHttpRequest::m_BufferSize = 0 |
|
private |
◆ m_Current
std::atomic<double> CHttpRequest::m_Current {0.0} |
|
private |
◆ m_ExpectedSha256
◆ m_FailOnErrorStatus
bool CHttpRequest::m_FailOnErrorStatus = true |
|
private |
◆ m_File
◆ m_HeadersEnded
bool CHttpRequest::m_HeadersEnded = false |
|
private |
◆ m_IfModifiedSince
int64_t CHttpRequest::m_IfModifiedSince = -1 |
|
private |
◆ m_IpResolve
◆ m_LogProgress
◆ m_MaxResponseSize
int64_t CHttpRequest::m_MaxResponseSize = -1 |
|
private |
◆ m_pBody
unsigned char* CHttpRequest::m_pBody = nullptr |
|
private |
◆ m_pBuffer
unsigned char* CHttpRequest::m_pBuffer = nullptr |
|
private |
◆ m_pHeaders
void* CHttpRequest::m_pHeaders = nullptr |
|
private |
◆ m_Progress
std::atomic<int> CHttpRequest::m_Progress {0} |
|
private |
◆ m_ResponseLength
uint64_t CHttpRequest::m_ResponseLength = 0 |
|
private |
◆ m_ResultDate
std::optional<int64_t> CHttpRequest::m_ResultDate = {} |
|
private |
◆ m_ResultLastModified
std::optional<int64_t> CHttpRequest::m_ResultLastModified = {} |
|
private |
◆ m_Size
std::atomic<double> CHttpRequest::m_Size {0.0} |
|
private |
◆ m_State
◆ m_StatusCode
int CHttpRequest::m_StatusCode = 0 |
|
private |
◆ m_Timeout
◆ m_Type
◆ m_WaitCondition
std::condition_variable CHttpRequest::m_WaitCondition |
|
private |
◆ m_WaitMutex
std::mutex CHttpRequest::m_WaitMutex |
|
private |
◆ m_WriteToFile
bool CHttpRequest::m_WriteToFile = false |
|
private |
The documentation for this class was generated from the following files: