dl
dl::Http::Request类 参考

#include <dl_http.h>

Public 类型

enum class  Type { GET , POST }
 
using FnCallback = std::function<void(void)>
 

Public 成员函数

void SetUrl (std::string_view url)
 
void SetType (Type type)
 
void SetDataSend (BufferView buf)
 
void SetDataSend (std::string_view str)
 
void SetDataSend (const json &j)
 
void SetHeader (const std::vector< std::string > &vec_header)
 
std::vector< std::string > GetHeader ()
 
BufferView GetDataSend ()
 
FnCallback GetCb ()
 
std::string GetUrl ()
 
BufferView GetDataRecv ()
 
BufferGetDataRecvRef ()
 
Type GetType ()
 
 Request ()
 

详细描述

在文件 dl_http.h28 行定义.

成员类型定义说明

◆ FnCallback

using dl::Http::Request::FnCallback = std::function<void(void)>

在文件 dl_http.h31 行定义.

成员枚举类型说明

◆ Type

enum class dl::Http::Request::Type
strong
枚举值
GET 
POST 

在文件 dl_http.h32 行定义.

构造及析构函数说明

◆ Request()

dl::Http::Request::Request ( )
inline

在文件 dl_http.h80 行定义.

成员函数说明

◆ GetCb()

FnCallback dl::Http::Request::GetCb ( )
inline

在文件 dl_http.h72 行定义.

◆ GetDataRecv()

BufferView dl::Http::Request::GetDataRecv ( )
inline

在文件 dl_http.h75 行定义.

◆ GetDataRecvRef()

Buffer & dl::Http::Request::GetDataRecvRef ( )
inline

在文件 dl_http.h76 行定义.

◆ GetDataSend()

BufferView dl::Http::Request::GetDataSend ( )
inline

在文件 dl_http.h70 行定义.

◆ GetHeader()

std::vector< std::string > dl::Http::Request::GetHeader ( )
inline

在文件 dl_http.h69 行定义.

◆ GetType()

Type dl::Http::Request::GetType ( )
inline

在文件 dl_http.h78 行定义.

◆ GetUrl()

std::string dl::Http::Request::GetUrl ( )
inline

在文件 dl_http.h73 行定义.

◆ SetDataSend() [1/3]

void dl::Http::Request::SetDataSend ( BufferView buf)
inline

在文件 dl_http.h48 行定义.

◆ SetDataSend() [2/3]

void dl::Http::Request::SetDataSend ( const json & j)
inline

在文件 dl_http.h61 行定义.

◆ SetDataSend() [3/3]

void dl::Http::Request::SetDataSend ( std::string_view str)
inline

在文件 dl_http.h57 行定义.

◆ SetHeader()

void dl::Http::Request::SetHeader ( const std::vector< std::string > & vec_header)
inline

在文件 dl_http.h65 行定义.

◆ SetType()

void dl::Http::Request::SetType ( Type type)
inline

在文件 dl_http.h38 行定义.

◆ SetUrl()

void dl::Http::Request::SetUrl ( std::string_view url)
inline

在文件 dl_http.h37 行定义.


该类的文档由以下文件生成: