%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/web/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/web/__pycache__/_newclient.cpython-312.pyc |
� Ϫ�fN� � �� � d Z ddlZddlmZ ddlmZmZmZmZm Z ddl mZ ddlm Z mZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZmZm Z m!Z!m"Z"m#Z# ddl$m%Z% ddl&m'Z'm(Z(m)Z) dZ*dZ+dZ,dZ- e� Z. G d� de/� Z0 G d� de/� Z1 G d� de/� Z2 G d� de2� Z3 G d� de/� Z4 G d� d e4� Z5 G d!� d"e4� Z6 G d#� d$e/� Z7 G d%� d&e/� Z8 G d'� d(e/� Z9 G d)� d*e4� Z: G d+� d,e:� Z; G d-� d.e/� Z<d/� Z= G d0� d1e� Z> G d2� d3e>� Z? ej� d4 eA� j� d5� fz � ZCd6� ZD ej� d7� ZEd8� ZF ee(� G d9� d:� � ZG G d;� d<� ZHd=� ZI ee(� ZJ ee)� G d>� d?� � ZK ee � G d@� dA� � ZL ee� G dB� dC� � ZM G dD� dEe� ZNy)Fa� An U{HTTP 1.1<http://www.w3.org/Protocols/rfc2616/rfc2616.html>} client. The way to use the functionality provided by this module is to: - Connect a L{HTTP11ClientProtocol} to an HTTP server - Create a L{Request} with the appropriate data - Pass the request to L{HTTP11ClientProtocol.request} - The returned Deferred will fire with a L{Response} object - Create a L{IProtocol} provider which can handle the response body - Connect it to the response with L{Response.deliverBody} - When the protocol's C{connectionLost} method is called, the response is complete. See L{Response.deliverBody} for details. Various other classes in this module support this usage: - HTTPParser is the basic HTTP parser. It can handle the parts of HTTP which are symmetric between requests and responses. - HTTPClientParser extends HTTPParser to handle response-specific parts of HTTP. One instance is created for each request to parse the corresponding response. � N)�implementer)�CancelledError�Deferred�fail� maybeDeferred�succeed)�ConnectionDone)� IConsumer� IPushProducer)�Protocol)�Logger)�LineReceiver)� networkString)�proxyForInterface)�Failure)�fullyQualifiedName)� NO_CONTENT�NOT_MODIFIED�PotentialDataLoss�_ChunkedTransferDecoder� _DataLoss�_IdentityTransferDecoder)�Headers)�UNKNOWN_LENGTH�IClientRequest� IResponse�STATUS�HEADER�BODY�DONEc � � e Zd ZdZy)� BadHeadersz@ Headers passed to L{Request} were in some way invalid. N��__name__� __module__�__qualname__�__doc__� � �8/usr/lib/python3/dist-packages/twisted/web/_newclient.pyr"