|
fastdo
0.6.16
|
URL解析器 更多...
#include <http_UrlParser.hpp>
Public 成员函数 | |
| UrlParser (Url *url) | |
| 构造函数1 更多... | |
| 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_UrlParser.hpp 第 8 行定义.
|
inline |
构造函数1
在文件 http_UrlParser.hpp 第 12 行定义.
| 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 | ) |
解析查询段。查询段必须是'?'之后和'#'之前的字符串,不含'?'