Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib/python2.7/site-packages/requests
opt
/
alt
/
python27
/
lib
/
python2.7
/
site-packages
/
requests
/
📁
..
📄
__init__.py
(2.16 KB)
📄
__init__.pyc
(2.8 KB)
📄
__init__.pyo
(2.8 KB)
📄
adapters.py
(18.24 KB)
📄
adapters.pyc
(16.8 KB)
📄
adapters.pyo
(16.8 KB)
📄
api.py
(5.66 KB)
📄
api.pyc
(6.48 KB)
📄
api.pyo
(6.48 KB)
📄
auth.py
(7.89 KB)
📄
auth.pyc
(8.86 KB)
📄
auth.pyo
(8.86 KB)
📄
certs.py
(649 B)
📄
certs.pyc
(923 B)
📄
certs.pyo
(923 B)
📄
compat.py
(1.51 KB)
📄
compat.pyc
(1.67 KB)
📄
compat.pyo
(1.67 KB)
📄
cookies.py
(17.15 KB)
📄
cookies.pyc
(21.2 KB)
📄
cookies.pyo
(21.2 KB)
📄
exceptions.py
(2.71 KB)
📄
exceptions.pyc
(5.98 KB)
📄
exceptions.pyo
(5.98 KB)
📄
hooks.py
(767 B)
📄
hooks.pyc
(1.21 KB)
📄
hooks.pyo
(1.21 KB)
📄
models.py
(28.84 KB)
📄
models.pyc
(25.79 KB)
📄
models.pyo
(25.79 KB)
📁
packages
📄
sessions.py
(24.31 KB)
📄
sessions.pyc
(20.07 KB)
📄
sessions.pyo
(20.07 KB)
📄
status_codes.py
(3.24 KB)
📄
status_codes.pyc
(4.52 KB)
📄
status_codes.pyo
(4.52 KB)
📄
structures.py
(2.95 KB)
📄
structures.pyc
(5.32 KB)
📄
structures.pyo
(5.32 KB)
📄
utils.py
(21.71 KB)
📄
utils.pyc
(21.16 KB)
📄
utils.pyo
(21.16 KB)
Editing: __init__.py
# -*- coding: utf-8 -*- # __ # /__) _ _ _ _ _/ _ # / ( (- (/ (/ (- _) / _) # / """ Requests HTTP library ~~~~~~~~~~~~~~~~~~~~~ Requests is an HTTP library, written in Python, for human beings. Basic GET usage: >>> import requests >>> r = requests.get('https://www.python.org') >>> r.status_code 200 >>> 'Python is a programming language' in r.content True ... or POST: >>> payload = dict(key1='value1', key2='value2') >>> r = requests.post('http://httpbin.org/post', data=payload) >>> print(r.text) { ... "form": { "key2": "value2", "key1": "value1" }, ... } The other HTTP methods are supported - see `requests.api`. Full documentation is at <http://python-requests.org>. :copyright: (c) 2016 by Kenneth Reitz. :license: Apache 2.0, see LICENSE for more details. """ __title__ = 'requests' __version__ = '2.10.0' __build__ = 0x021000 __author__ = 'Kenneth Reitz' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2016 Kenneth Reitz' # Attempt to enable urllib3's SNI support, if possible try: from .packages.urllib3.contrib import pyopenssl pyopenssl.inject_into_urllib3() except ImportError: pass import warnings # urllib3's DependencyWarnings should be silenced. from .packages.urllib3.exceptions import DependencyWarning warnings.simplefilter('ignore', DependencyWarning) from . import utils from .models import Request, Response, PreparedRequest from .api import request, get, head, post, patch, put, delete, options from .sessions import session, Session from .status_codes import codes from .exceptions import ( RequestException, Timeout, URLRequired, TooManyRedirects, HTTPError, ConnectionError, FileModeWarning, ConnectTimeout, ReadTimeout ) # Set default logging handler to avoid "No handler found" warnings. import logging try: # Python 2.7+ from logging import NullHandler except ImportError: class NullHandler(logging.Handler): def emit(self, record): pass logging.getLogger(__name__).addHandler(NullHandler()) import warnings # FileModeWarnings go off per the default. warnings.simplefilter('default', FileModeWarning, append=True)
Upload File
Create Folder