Sese Framework
x.y.z
A cross-platform framework
|
HTTP 工具类 更多...
#include <HttpUtil.h>
Public 类型 | |
using | InputStream = io::InputStream |
using | OutputStream = io::OutputStream |
静态 Public 成员函数 | |
static bool | recvRequest (InputStream *source, RequestHeader *request) noexcept |
从流中接收一个请求 | |
static bool | sendRequest (OutputStream *dest, RequestHeader *request) noexcept |
向流中发送一个请求 | |
static bool | recvResponse (InputStream *source, ResponseHeader *response) noexcept |
从流中接收一个响应 | |
static bool | sendResponse (OutputStream *dest, ResponseHeader *response) noexcept |
向流中发送一个响应 | |
static Cookie::Ptr | parseFromSetCookie (const std::string &text) noexcept |
static CookieMap::Ptr | parseFromCookie (const std::string &text) noexcept |
静态 Public 属性 | |
static std::map< std::string, std::string > | content_type_map |
content-type 拓展名映射 | |
静态 Private 成员函数 | |
static bool | getLine (InputStream *source, text::StringBuilder &builder) noexcept |
static bool | recvHeader (InputStream *source, text::StringBuilder &builder, Header *header, bool is_resp=false) noexcept |
static bool | sendHeader (OutputStream *dest, Header *header, bool is_resp=false) noexcept |
static bool | sendSetCookie (OutputStream *dest, const CookieMap::Ptr &cookies) noexcept |
static bool | sendCookie (OutputStream *dest, const CookieMap::Ptr &cookies) noexcept |
HTTP 工具类
|
staticprivatenoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
inlinestaticprivatenoexcept |
引用了 sese::net::http::CookieMap::add() , 以及 strcasecmp.
|
staticnoexcept |
从流中接收一个请求
source | 目标源 |
request | 请求 |
引用了 sese::text::AbstractStringBuffer::clear(), sese::text::AbstractStringBuffer::split() , 以及 sese::net::http::stringToRequestType().
|
staticnoexcept |
从流中接收一个响应
source | 目标源 |
response | 响应 |
引用了 _atoi64, sese::text::AbstractStringBuffer::clear() , 以及 sese::text::AbstractStringBuffer::split().
被这些函数引用 sese::internal::net::http::HttpClientImpl::request().
|
inlinestaticprivatenoexcept |
引用了 WRITE.
|
inlinestaticprivatenoexcept |
引用了 WRITE.
|
staticnoexcept |
向流中发送一个请求
dest | 目的流 |
request | 请求 |
引用了 sese::net::http::requestTypeToString().
被这些函数引用 sese::internal::net::http::HttpClientImpl::request().
|
staticnoexcept |
向流中发送一个响应
dest | 目的流 |
response | 响应 |
被这些函数引用 sese::internal::service::http::HttpConnection::handleRequest().
|
inlinestaticprivatenoexcept |
|
static |
content-type 拓展名映射
被这些函数引用 sese::internal::service::http::HttpServiceImpl::handleRequest().