设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Requests 2.6.0发布,Python的HTTP客户端库

2015-3-15 17:02| 发布者: joejoe0332| 查看: 1195| 评论: 0|原作者: oschina|来自: oschina

摘要: Requests 是一个 Python 的 HTTP 客户端库。示例代码:?1234567r=requests.get('https://api.github.com',auth=('user','pass'))r.status_code204r.headers'application/json'r.text...Requests 2.6.0 发布,此版本 ...

Requests 是一个 Python 的 HTTP 客户端库。

示例代码:

1
2
3
4
5
6
7
>>> r = requests.get('https://api.github.com', auth=('user''pass'))
>>> r.status_code
204
>>> r.headers['content-type']
'application/json'
>>> r.text
...

Requests 2.6.0 发布,此版本现已提供下载:https://github.com/kennethreitz/requests/archive/v2.6.0.zip

更新内容如下:

Bug 修复

  • Fix handling of cookies on redirect. 

  • Fix error when requests is an install_requires dependency and python setup.py test is run. (#2462)

  • Fix error when urllib3 is unbundled and requests continues to use the vendored import location.

  • Include fixes to urllib3's header handling.

  • Requests' handling of unvendored dependencies is now more restrictive.

新特性和改进

  • Support bytearrays when passed as parameters in the files argument. (#2468)

  • Avoid data duplication when creating a request with str, bytes, orbytearray input to the files argument.

更多内容请看更新日志


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部