pyhttp:用于 python 的非常小的 Http 库

时间:2021-06-02 01:04:37
【文件属性】:
文件名称:pyhttp:用于 python 的非常小的 Http 库
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-02 01:04:37
Python ##PyHTTP Python 的极简 HTTP 包装器。 ##安装 pip install pyrequest ##用法 from pyhttp import Request r = Request ( "google.com" ). get () print r . status // POST request r = Request ( 'http://jsonplaceholder.typicode.com/posts' ) response = r . post ({ 'title' : 'hello' }) print response . content print response . status print response . json // setting headers r = Request ( 'http://jsonplaceholder.typico
【文件预览】:
pyhttp-master
----MANIFEST.in(17B)
----.travis.yml(1000B)
----setup.py(680B)
----README.md(1KB)
----pyhttp()
--------Response.py(621B)
--------__init__.py(101B)
--------Exceptions.py(611B)
--------Request.py(2KB)
----tests()
--------test_request.py(987B)
--------__init__.py(28B)
----.gitignore(49B)

网友评论