fastdo
0.6.8
|
URL解析器 更多...
#include <http_url.hpp>
Public 成员函数 | |
UrlParser (Url *pUrl) | |
void | parse (winux::String const &url, bool hasSchemeSegment=true, bool hasHostSegment=true, bool hasPathSegment=true, bool hasQuerySegment=true, bool hasFragmentSegment=true) |
解析一个URL. 更多... | |
void | parseHostSegment (winux::String const &hostSegment) |
解析主机段,主机段必须是'//'之后和'/'之前的字符串,不含'//'. 更多... | |
void | parsePathSegment (winux::String const &pathSegment) |
解析路径段,路径段必须是'/'之后和'?''#'之前的字符串,不含'/'. 更多... | |
void | parseQuerySegment (winux::String const &querySegment) |
解析查询段,查询段必须是'?'之后和'#'之前的字符串,不含'?'. 更多... | |
URL解析器
在文件 http_url.hpp 第 214 行定义.
|
inline |
在文件 http_url.hpp 第 217 行定义.
void http::UrlParser::parse | ( | winux::String const & | url, |
bool | hasSchemeSegment = true , |
||
bool | hasHostSegment = true , |
||
bool | hasPathSegment = true , |
||
bool | hasQuerySegment = true , |
||
bool | hasFragmentSegment = true |
||
) |
解析一个URL.
void http::UrlParser::parseHostSegment | ( | winux::String const & | hostSegment | ) |
解析主机段,主机段必须是'//'之后和'/'之前的字符串,不含'//'.
void http::UrlParser::parsePathSegment | ( | winux::String const & | pathSegment | ) |
解析路径段,路径段必须是'/'之后和'?''#'之前的字符串,不含'/'.
void http::UrlParser::parseQuerySegment | ( | winux::String const & | querySegment | ) |
解析查询段,查询段必须是'?'之后和'#'之前的字符串,不含'?'.