fastdo
0.6.16
首页
命名空间
类
文件
文件列表
文件成员
http_misc.hpp
浏览该文件的文档.
1
#ifndef __HTTP_MISC_HPP__
2
#define __HTTP_MISC_HPP__
3
4
namespace
http
5
{
6
class
Vars;
7
9
HTTPWRAPPER_FUNC_DECL
(
void
)
ProcessMultipartFormData
(
char
const * buf,
size_t
size,
winux
::
String
const & boundary,
http
::Vars * post,
winux
::
StringArray
* arrTmpFiles );
10
12
struct
HTTPWRAPPER_DLL
UrlPathPartData
13
{
14
winux::StringArray
urlPathPartArr
;
15
size_t
iEndUrlPath
;
16
winux::String
urlPath
;
17
winux::String
requestPathInfo
;
18
winux::String
extName
;
19
bool
isExist
;
20
bool
isFile
;
21
22
UrlPathPartData();
28
void
init(
winux::String
const
& urlRawPathStr,
winux::String
const
& documentRootDir );
29
};
30
31
32
}
// namespace http
33
34
35
#endif // __HTTP_MISC_HPP__
HTTPWRAPPER_FUNC_DECL
#define HTTPWRAPPER_FUNC_DECL(ret)
Definition:
http_base.hpp:28
HTTPWRAPPER_DLL
#define HTTPWRAPPER_DLL
Definition:
http_base.hpp:24
http::UrlPathPartData
处理URL路径部分时的一些中间变量
Definition:
http_misc.hpp:12
winux::String
XString< tchar > String
Definition:
utilities.hpp:261
http::UrlPathPartData::isExist
bool isExist
路径在文档根目录是否存在
Definition:
http_misc.hpp:19
http
HTTP协议的相关简单类封装
Definition:
http_base.hpp:32
http::UrlPathPartData::urlPath
winux::String urlPath
URL路径,会以'/'开头
Definition:
http_misc.hpp:16
http::UrlPathPartData::isFile
bool isFile
是否为文件。由于扩展名可能是空,所以增加这个变量表示urlPath是否是文件
Definition:
http_misc.hpp:20
http::UrlPathPartData::iEndUrlPath
size_t iEndUrlPath
停止在urlPath所达到的那个部分的索引
Definition:
http_misc.hpp:15
http::UrlPathPartData::urlPathPartArr
winux::StringArray urlPathPartArr
分割url.getPath(),第一个元素始终是空串,表示起始根路径
Definition:
http_misc.hpp:14
http::ProcessMultipartFormData
void ProcessMultipartFormData(char const *buf, size_t size, winux::String const &boundary, http::Vars *post, winux::StringArray *arrTmpFiles)
处理Content-Type: multipart/form-data的请求体数据到一个Vars类对象(通常是post对象) ...
http::UrlPathPartData::requestPathInfo
winux::String requestPathInfo
PATH_INFO.
Definition:
http_misc.hpp:17
winux::StringArray
XStringArray< tchar > StringArray
Definition:
utilities.hpp:272
http::UrlPathPartData::extName
winux::String extName
扩展名(不含点号'.')
Definition:
http_misc.hpp:18
winux
跨平台基础功能库
Definition:
archives.hpp:7
dist
x64
include
http_misc.hpp
生成于 2024年 十二月 24日 星期二 01:35:06 , 为 fastdo使用
1.8.11