Documentation ¶
Overview ¶
包gurl提供了用于URL处理的有用API。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func X生成URL ¶
BuildQuery 生成 URL 编码的查询字符串。 参考:http://php.net/manual/en/function.http-build-query.php.
func X编码RFC3986 ¶
RawEncode 对给定的字符串进行编码, 根据 RFC 3986 进行 URL 编码。 参见 http://php.net/manual/en/function.rawurlencode.php.
func X解析 ¶
ParseURL 解析一个URL并返回其组成部分。 参数: -1:所有部分;1:方案(如http);2:主机名;4:端口;8:用户名;16:密码;32:路径;64:查询字符串;128:片段(锚点)。 参考:http://php.net/manual/en/function.parse-url.php.
func X解码 ¶
Decode完成与Encode相反的转换操作, 将形式为"%AB"的每个3字节编码子串转化为十六进制解码后的字节0xAB。 如果存在百分号(%)后跟随的不是两个十六进制数字,则返回错误。
func X解码RFC3986 ¶
RawDecode用于解码给定的字符串 解码URL编码过的字符串。 参考:http://php.net/manual/en/function.rawurldecode.php.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.