binding.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:splunk_ta_ps4_f1_2016 作者: jonathanvarley 项目源码 文件源码
def _spliturl(url):
    scheme, opaque = urllib.splittype(url)
    netloc, path = urllib.splithost(opaque)
    host, port = urllib.splitport(netloc)
    # Strip brackets if its an IPv6 address
    if host.startswith('[') and host.endswith(']'): host = host[1:-1]
    if port is None: port = DEFAULT_PORT
    return scheme, host, port, path

# Given an HTTP request handler, this wrapper objects provides a related
# family of convenience methods built using that handler.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号