Module Expr Str ImportFrom alias identifier ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias alias alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args defaults TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Return BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareLtE NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Return NameLoad orelse Assign NameStore BinOpSub NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Return BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body While BoolOpAnd CompareNotIn Str AttributeLoad NameLoad attr CompareLt Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpSub NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Break AugAssignAdd AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad Return BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str Str Str Str BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore IfExp NameLoad Num Num If NameLoad body Assign NameStore Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If NameLoad body AugAssignAdd NameStore BinOpAdd Str NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword BoolOpAnd NameLoad CompareIn Str NameLoad If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A 
Monkey Patch httplib.HTTPResponse to buffer reads of headers. This can improve
performance when making large numbers of small HTTP requests.  This module
also provides helper functions to make HTTP connections using
BufferedHTTPResponse.

.. warning::

    If you use this, be sure that the libraries you are using do not access
    the socket directly (xmlrpclib, I'm looking at you :/), and instead
    make all calls through httplib.
 swift gettext_ _ swift.common constraints N/A logging N/A time N/A socket N/A eventlet eventlet.green.httplib CONTINUE HTTPConnection HTTPMessage HTTPResponse HTTPSConnection _UNKNOWN six.moves.urllib.parse quote N/A six N/A httplib N/A N/A eventlet import_patched httplib N/A N/A httplib _MAXHEADERS N/A constraints MAX_HEADER_COUNT BufferedHTTPResponse N/A HTTPResponse N/A N/A HTTPResponse class that buffers reading of headers __init__ N/A N/A self sock debuglevel strict method N/A 0 0 None N/A N/A N/A self sock sock N/A N/A self _real_socket N/A N/A sock fd _sock N/A N/A self fp N/A N/A sock makefile rb N/A N/A self debuglevel debuglevel N/A N/A self strict strict N/A N/A self _method method N/A N/A self msg None N/A N/A self version _UNKNOWN N/A N/A self status _UNKNOWN N/A N/A self reason _UNKNOWN N/A N/A self chunked _UNKNOWN N/A N/A self chunk_left _UNKNOWN N/A N/A self length _UNKNOWN N/A N/A self will_close _UNKNOWN N/A N/A self _readline_buffer N/A expect_response N/A N/A self N/A N/A N/A N/A self fp N/A N/A N/A N/A N/A self fp close N/A N/A self fp None N/A N/A self fp N/A N/A N/A self sock makefile rb 0 N/A N/A version status reason N/A N/A self _read_status N/A N/A status CONTINUE N/A N/A N/A self _read_status N/A N/A N/A N/A N/A version status reason N/A N/A N/A self begin N/A N/A N/A self status status N/A N/A self reason N/A N/A reason strip N/A N/A self version 11 N/A N/A self msg N/A HTTPMessage N/A self fp 0 N/A N/A N/A self msg fp None N/A read N/A N/A self amt N/A None N/A N/A N/A N/A self _readline_buffer N/A N/A N/A N/A HTTPResponse read self amt N/A N/A amt None N/A N/A buffered N/A self _readline_buffer N/A N/A self _readline_buffer N/A N/A buffered N/A N/A HTTPResponse read self amt N/A N/A N/A amt N/A len N/A self _readline_buffer N/A N/A res N/A N/A self _readline_buffer N/A amt N/A N/A self _readline_buffer N/A N/A self _readline_buffer N/A amt N/A res N/A N/A smaller_amt N/A amt N/A len N/A self _readline_buffer N/A buf N/A self _readline_buffer N/A N/A self _readline_buffer N/A N/A buf N/A N/A HTTPResponse read self smaller_amt N/A readline N/A N/A self size N/A 1024 N/A N/A N/A N/A N/A self _readline_buffer N/A N/A len N/A self _readline_buffer size N/A N/A read_size N/A size N/A len N/A self _readline_buffer N/A chunk N/A N/A HTTPResponse read self read_size N/A N/A chunk N/A N/A N/A N/A self _readline_buffer chunk N/A N/A line newline rest N/A N/A N/A self _readline_buffer partition N/A N/A self _readline_buffer rest N/A N/A line newline N/A nuke_from_orbit N/A N/A self N/A N/A N/A 
        Terminate the socket with extreme prejudice.

        Closes the underlying socket regardless of whether or not anyone else
        has references to it. Use this when you are certain that nobody else
        you care about has a reference to this socket.
         N/A N/A self _real_socket N/A N/A N/A N/A N/A self _real_socket close N/A N/A self _real_socket None N/A N/A N/A self close N/A close N/A N/A self N/A N/A N/A N/A N/A HTTPResponse close self N/A N/A self sock None N/A N/A self _real_socket None N/A N/A BufferedHTTPConnection N/A HTTPConnection N/A N/A HTTPConnection class that uses BufferedHTTPResponse N/A response_class BufferedHTTPResponse connect N/A N/A self N/A N/A N/A N/A self _connected_time N/A N/A time time N/A ret N/A N/A HTTPConnection connect self N/A N/A N/A N/A self sock setsockopt N/A socket IPPROTO_TCP N/A socket TCP_NODELAY 1 N/A ret N/A putrequest N/A N/A self method url skip_host skip_accept_encoding N/A 0 0 N/A N/A N/A self _method method N/A N/A self _path url N/A N/A N/A HTTPConnection putrequest self method url skip_host skip_accept_encoding N/A getexpect N/A N/A self N/A N/A N/A response N/A BufferedHTTPResponse N/A self sock strict N/A self strict method N/A self _method N/A N/A N/A response expect_response N/A response N/A getresponse N/A N/A self N/A N/A N/A response N/A N/A HTTPConnection getresponse self N/A N/A N/A logging debug HTTP PERF: %(time).5f seconds to %(method)s %(host)s:%(port)s %(path)s) N/A time method host port path N/A N/A N/A time time N/A self _connected_time N/A self _method N/A self host N/A self port N/A self _path N/A response N/A N/A http_connect N/A N/A ipaddr port device partition method path headers query_string ssl N/A None None False N/A N/A 
    Helper function to create an HTTPConnection object. If ssl is set True,
    HTTPSConnection will be used. However, if ssl=False, BufferedHTTPConnection
    will be used, which is buffered for backend Swift services.

    :param ipaddr: IPv4 address to connect to
    :param port: port to connect to
    :param device: device of the node to query
    :param partition: partition on the device
    :param method: HTTP method to request ('GET', 'PUT', 'POST', etc.)
    :param path: request path
    :param headers: dictionary of headers
    :param query_string: request query string
    :param ssl: set True if SSL should be used (default: False)
    :returns: HTTPConnection object
     N/A N/A isinstance path N/A six text_type N/A N/A N/A N/A path N/A N/A path encode utf-8 N/A N/A N/A UnicodeError N/A e N/A N/A N/A N/A logging exception N/A _ Error encoding to UTF-8: %s N/A str e N/A N/A isinstance device N/A six text_type N/A N/A N/A N/A device N/A N/A device encode utf-8 N/A N/A N/A UnicodeError N/A e N/A N/A N/A N/A logging exception N/A _ Error encoding to UTF-8: %s N/A str e N/A path N/A quote N/A N/A N/A N/A / device / N/A str partition path N/A N/A http_connect_raw ipaddr port method path headers query_string ssl N/A http_connect_raw N/A N/A ipaddr port method path headers query_string ssl N/A None None False N/A N/A 
    Helper function to create an HTTPConnection object. If ssl is set True,
    HTTPSConnection will be used. However, if ssl=False, BufferedHTTPConnection
    will be used, which is buffered for backend Swift services.

    :param ipaddr: IPv4 address to connect to
    :param port: port to connect to
    :param method: HTTP method to request ('GET', 'PUT', 'POST', etc.)
    :param path: request path
    :param headers: dictionary of headers
    :param query_string: request query string
    :param ssl: set True if SSL should be used (default: False)
    :returns: HTTPConnection object
     N/A N/A port N/A N/A port N/A ssl 443 80 N/A ssl N/A N/A conn N/A HTTPSConnection N/A %s:%s N/A ipaddr port N/A N/A conn N/A BufferedHTTPConnection N/A %s:%s N/A ipaddr port N/A query_string N/A N/A path N/A ? query_string N/A N/A conn path path N/A N/A N/A conn putrequest method path skip_host N/A headers N/A Host headers N/A headers N/A N/A N/A header value N/A N/A headers items N/A N/A N/A N/A conn putheader header N/A str value N/A N/A N/A conn endheaders N/A conn N/A