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 
13 {
15  size_t iEndUrlPath;
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__
#define HTTPWRAPPER_FUNC_DECL(ret)
Definition: http_base.hpp:28
#define HTTPWRAPPER_DLL
Definition: http_base.hpp:24
处理URL路径部分时的一些中间变量
Definition: http_misc.hpp:12
XString< tchar > String
Definition: utilities.hpp:261
bool isExist
路径在文档根目录是否存在
Definition: http_misc.hpp:19
HTTP协议的相关简单类封装
Definition: http_base.hpp:32
winux::String urlPath
URL路径,会以&#39;/&#39;开头
Definition: http_misc.hpp:16
bool isFile
是否为文件。由于扩展名可能是空,所以增加这个变量表示urlPath是否是文件
Definition: http_misc.hpp:20
size_t iEndUrlPath
停止在urlPath所达到的那个部分的索引
Definition: http_misc.hpp:15
winux::StringArray urlPathPartArr
分割url.getPath(),第一个元素始终是空串,表示起始根路径
Definition: http_misc.hpp:14
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对象) ...
winux::String requestPathInfo
PATH_INFO.
Definition: http_misc.hpp:17
XStringArray< tchar > StringArray
Definition: utilities.hpp:272
winux::String extName
扩展名(不含点号&#39;.&#39;)
Definition: http_misc.hpp:18
跨平台基础功能库
Definition: archives.hpp:7