mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
80 lines
1014 B
ReStructuredText
80 lines
1014 B
ReStructuredText
Feature Overview
|
|
================
|
|
|
|
|
|
.. _features:
|
|
|
|
Requests Can:
|
|
-------------
|
|
|
|
- Make **GET**, **POST**, **PUT**, **DELETE**, and **HEAD** requests.
|
|
- Handle HTTP and HTTPS Requests
|
|
- Add Request headers (with a simple dictionary)
|
|
- URLEncode your Form Data (with a simple dictionary)
|
|
- Add Multi-part File Uploads (with a simple dictionary)
|
|
- Add CookieJars
|
|
- Automatically decompress of GZipped responses
|
|
- Support Unicode URLs
|
|
- Handle redirects (with history)
|
|
- Gracefully timeout
|
|
- Interface with Eventlet & Gevent
|
|
|
|
|
|
Requests Can't:
|
|
---------------
|
|
|
|
- Handle Caching
|
|
- Handle Keep-Alives
|
|
|
|
|
|
Quickstart
|
|
==========
|
|
|
|
|
|
GET Request
|
|
-----------
|
|
|
|
|
|
Adding Parameters
|
|
-----------------
|
|
|
|
|
|
|
|
Adding Headers
|
|
--------------
|
|
|
|
|
|
|
|
HTTP Basic Auth
|
|
---------------
|
|
|
|
|
|
Tracking Redirects
|
|
------------------
|
|
|
|
|
|
|
|
|
|
HTTP POST (Form Data)
|
|
---------------------
|
|
|
|
|
|
HTTP POST (Binary Data)
|
|
-----------------------
|
|
|
|
|
|
HTTP POST (Multipart Files)
|
|
---------------------------
|
|
|
|
|
|
HTTP PUT
|
|
--------
|
|
|
|
|
|
HTTP DELETE
|
|
-----------
|
|
|
|
|
|
HTTP HEAD
|
|
---------
|