%PDF- %PDF-
Direktori : /usr/lib64/python2.7/site-packages/tornado/ |
Current File : //usr/lib64/python2.7/site-packages/tornado/http1connection.pyo |
� ��L]c @� sN d Z d d l m Z m Z m Z m Z d d l Z d d l m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e j f d � � YZ d e j f d � � YZ d e f d � � YZ d S( sF Client and server implementations of HTTP/1.x. .. versionadded:: 4.0 i ( t absolute_importt divisiont print_functiont with_statementN( t Future( t native_strt utf8( t gen( t httputil( t iostream( t gen_logt app_log( t stack_context( t GzipDecompressort _QuietExceptionc B� s e Z d � Z RS( c C� s d S( N( ( t self( ( s= /usr/lib64/python2.7/site-packages/tornado/http1connection.pyt __init__$ s ( t __name__t __module__R ( ( ( s= /usr/lib64/python2.7/site-packages/tornado/http1connection.pyR # s t _ExceptionLoggingContextc B� s) e Z d Z d � Z d � Z d � Z RS( s� Used with the ``with`` statement when calling delegate methods to log any exceptions with the given logger. Any exceptions caught are converted to _QuietException c C� s | | _ d S( N( t logger( R R ( ( s= /usr/lib64/python2.7/site-packages/tornado/http1connection.pyR - s c C� s d S( N( ( R ( ( s= /usr/lib64/python2.7/site-packages/tornado/http1connection.pyt __enter__0 s c C� s8 | d k r4 | j j d d | | | f �t � n d S( Ns Uncaught exceptiont exc_info( t NoneR t errorR ( R t typt valuet tb( ( s= /usr/lib64/python2.7/site-packages/tornado/http1connection.pyt __exit__3 s ( R R t __doc__R R R ( ( ( s= /usr/lib64/python2.7/site-packages/tornado/http1connection.pyR ( s t HTTP1ConnectionParametersc B� s, e Z d Z e d d d d d e d � Z RS( sD Parameters for `.HTTP1Connection` and `.HTTP1ServerConnection`. c C� sO | | _ | p d | _ | p! d | _ | | _ | | _ | | _ | | _ d S( s; :arg bool no_keep_alive: If true, always close the connection after one request. :arg int chunk_size: how much data to read into memory at once :arg int max_header_size: maximum amount of data for HTTP headers :arg float header_timeout: how long to wait for all headers (seconds) :arg int max_body_size: maximum amount of data for body :arg float body_timeout: how long to wait while reading body (seconds) :arg bool decompress: if true, decode incoming ``Content-Encoding: gzip`` i N( t no_keep_alivet chunk_sizet max_header_sizet header_timeoutt max_body_sizet body_timeoutt decompress( R R R R! R"