首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > url-normalize

url-normalize

  • 资源大小:3.16 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: urlnormalize

资 源 简 介

URI Normalization function: * Take care of IDN domains. * Always provide the URI scheme in lowercase characters. * Always provide the host, if any, in lowercase characters. * Only perform percent-encoding where it is essential. * Always use uppercase A-through-F characters when percent-encoding. * Prevent dot-segments appearing in non-relative URI paths. * For schemes that define a default authority, use an empty authority if the default is desired. * For schemes that define an empty path to be equivalent to a path of "/", use "/". * For schemes that define a port, use an empty port if the default is desired * All portions of the URI must be utf-8 encoded NFC from Unicode strings Inspired by Sam Ruby"s urlnorm.py: http://intertwingly.net/blog/2004/08/04/Urlnorm History: * 10 Feb 2010: support for shebang (#!) urls * 28 Feb 2010: using "http" schema by default when appropriate * 28 Feb 2010: added handling of IDN domains * 28 Feb 2010: code pep8-za

文 件 列 表

url_normalize.py

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP