Current File : //proc/self/root/usr/lib/python3/dist-packages/twisted/web/__pycache__/iweb.cpython-312.pyc
�

Ϫ�fKl���dZddlmZmZmZmZddlmZmZddl	m
Z
ddlmZddl
mZddlmZerddlmZmZGd	�d
e�ZGd�de�ZGd
�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�d e�ZGd!�d"e�Z Gd#�d$e�Z!d%Z"gd&�Z#y')(z�
Interface definitions for L{twisted.web}.

@var UNKNOWN_LENGTH: An opaque object which may be used as the value of
    L{IBodyProducer.length} to indicate that the length of the entity
    body is not known in advance.
�)�
TYPE_CHECKING�Callable�List�Optional)�	Attribute�	Interface)�IUsernameDigestHash)�Deferred)�
IPushProducer)�Headers)�Flattenable�Tagc�D�eZdZdZed�Zed�Zed�Zed�Zed�Z	ed�Z
ed�Zed	�Zed
�Z
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd$d�Zd�Zd�Zd�Zd�Zd�Zd�Z						d%d�Zd$d�Z d�Z!d �Z"d!�Z#d"�Z$d&d#�Z%y)'�IRequestz+
    An HTTP request.

    @since: 9.0
    z0A L{bytes} giving the HTTP method that was used.zWA L{bytes} giving the full encoded URI which was requested (including query arguments).z\A L{bytes} giving the encoded query path of the request URI (not including query arguments).aA mapping of decoded query argument names as L{bytes} to corresponding query argument values as L{list}s of L{bytes}.  For example, for a URI with C{foo=bar&foo=baz&quux=spam} for its query part, C{args} will be C{{b'foo': [b'bar', b'baz'], b'quux': [b'spam']}}.zaThe URL path segments which have been processed during resource traversal, as a list of L{bytes}.zkThe URL path segments which have not (yet) been processed during resource traversal, as a list of L{bytes}.zLA L{http_headers.Headers} instance giving all received HTTP request headers.z�A file-like object giving the request body.  This may be a file on disk, an L{io.BytesIO}, or some other type.  The implementation is free to decide on a per-request basis.zPA L{http_headers.Headers} instance holding all HTTP response headers to be sent.c��y)a�
        Get an HTTP request header.

        @type key: L{bytes} or L{str}
        @param key: The name of the header to get the value of.

        @rtype: L{bytes} or L{str} or L{None}
        @return: The value of the specified header, or L{None} if that header
            was not present in the request. The string type of the result
            matches the type of C{key}.
        N���keys �2/usr/lib/python3/dist-packages/twisted/web/iweb.py�	getHeaderzIRequest.getHeaderK���c��y)a.
        Get a cookie that was sent from the network.

        @type key: L{bytes}
        @param key: The name of the cookie to get.

        @rtype: L{bytes} or L{None}
        @returns: The value of the specified cookie, or L{None} if that cookie
            was not present in the request.
        Nrrs r�	getCookiezIRequest.getCookieXrrc��y)z�
        Return dictionary mapping the names of all received headers to the last
        value received for each.

        Since this method does not return all header information,
        C{requestHeaders.getAllRawHeaders()} may be preferred.
        Nrrrr�
getAllHeaderszIRequest.getAllHeadersdrrc��y)a
        Get the hostname that the HTTP client passed in to the request.

        This will either use the C{Host:} header (if it is available; which,
        for a spec-compliant request, it will be) or the IP address of the host
        we are listening on if the header is unavailable.

        @note: This is the I{host portion} of the requested resource, which
            means that:

                1. it might be an IPv4 or IPv6 address, not just a DNS host
                   name,

                2. there's no guarantee it's even a I{valid} host name or IP
                   address, since the C{Host:} header may be malformed,

                3. it does not include the port number.

        @returns: the requested hostname

        @rtype: L{bytes}
        Nrrrr�getRequestHostnamezIRequest.getRequestHostnamemrrc��y)z�
        Get my originally requesting transport's host.

        @return: An L{IAddress<twisted.internet.interfaces.IAddress>}.
        Nrrrr�getHostzIRequest.getHost�rrc��y)a
        Return the address of the client who submitted this request.

        The address may not be a network address.  Callers must check
        its type before using it.

        @since: 18.4

        @return: the client's address.
        @rtype: an L{IAddress} provider.
        Nrrrr�getClientAddresszIRequest.getClientAddress�rrc��y)aP
        Return the IP address of the client who submitted this request.

        This method is B{deprecated}.  See L{getClientAddress} instead.

        @returns: the client IP address or L{None} if the request was submitted
            over a transport where IP addresses do not make sense.
        @rtype: L{str} or L{None}
        Nrrrr�getClientIPzIRequest.getClientIP�rrc��y)z�
        Return the HTTP user sent with this request, if any.

        If no user was supplied, return the empty string.

        @returns: the HTTP user, if any
        @rtype: L{str}
        Nrrrr�getUserzIRequest.getUser�rrc��y)z�
        Return the HTTP password sent with this request, if any.

        If no password was supplied, return the empty string.

        @returns: the HTTP password, if any
        @rtype: L{str}
        Nrrrr�getPasswordzIRequest.getPassword�rrc��y)az
        Return True if this request is using a secure transport.

        Normally this method returns True if this request's HTTPChannel
        instance is using a transport that implements ISSLTransport.

        This will also return True if setHost() has been called
        with ssl=True.

        @returns: True if this request is secure
        @rtype: C{bool}
        Nrrrr�isSecurezIRequest.isSecure�rrNc��y)a@
        Look up the session associated with this request or create a new one if
        there is not one.

        @return: The L{Session} instance identified by the session cookie in
            the request, or the C{sessionInterface} component of that session
            if C{sessionInterface} is specified.
        Nr)�sessionInterfaces r�
getSessionzIRequest.getSession�rrc��y)z�
        @return: A L{URLPath<twisted.python.urlpath.URLPath>} instance
            which identifies the URL for which this request is.
        Nrrrr�URLPathzIRequest.URLPath�rrc��y)a
        At any time during resource traversal or resource rendering,
        returns an absolute URL to the most nested resource which has
        yet been reached.

        @see: {twisted.web.server.Request.prepath}

        @return: An absolute URL.
        @rtype: L{bytes}
        Nrrrr�
prePathURLzIRequest.prePathURL�rrc��y)z_
        Remember the currently-processed part of the URL for later
        recalling.
        Nrrrr�rememberRootURLzIRequest.rememberRootURL�rrc��y)zn
        Get a previously-remembered URL.

        @return: An absolute URL.
        @rtype: L{bytes}
        Nrrrr�
getRootURLzIRequest.getRootURL�rrc��y)zI
        Indicate that the response to this request is complete.
        Nrrrr�finishzIRequest.finish�rrc��y)a$
        Write some data to the body of the response to this request.  Response
        headers are written the first time this method is called, after which
        new response headers may not be added.

        @param data: Bytes of the response body.
        @type data: L{bytes}
        Nr��datas r�writezIRequest.write�rrc��y)z�
        Set an outgoing HTTP cookie.

        In general, you should consider using sessions instead of cookies, see
        L{twisted.web.server.Request.getSession} and the
        L{twisted.web.server.Session} class for details.
        Nr)�k�v�expires�domain�path�max_age�comment�secures        r�	addCookiezIRequest.addCookierrc��y)zi
        Set the HTTP response code.

        @type code: L{int}
        @type message: L{bytes}
        Nr)�code�messages  r�setResponseCodezIRequest.setResponseCoderrc��y)a�
        Set an HTTP response header.  Overrides any previously set values for
        this header.

        @type k: L{bytes} or L{str}
        @param k: The name of the header for which to set the value.

        @type v: L{bytes} or L{str}
        @param v: The value to set for the named header. A L{str} will be
            UTF-8 encoded, which may not interoperable with other
            implementations. Avoid passing non-ASCII characters if possible.
        Nr)r=r>s  r�	setHeaderzIRequest.setHeaderrrc��y)zu
        Utility function that does a redirect.

        The request should have finish() called after this.
        Nr)�urls r�redirectzIRequest.redirect(rrc��y)a9
        Set the C{Last-Modified} time for the response to this request.

        If I am called more than once, I ignore attempts to set Last-Modified
        earlier, only replacing the Last-Modified time if it is to a later
        value.

        If I am a conditional request, I may modify my response code to
        L{NOT_MODIFIED<http.NOT_MODIFIED>} if appropriate for the time given.

        @param when: The last time the resource being returned was modified, in
            seconds since the epoch.
        @type when: L{int} or L{float}

        @return: If I am a C{If-Modified-Since} conditional request and the time
            given is not newer than the condition, I return
            L{CACHED<http.CACHED>} to indicate that you should write no body.
            Otherwise, I return a false value.
        Nr)�whens r�setLastModifiedzIRequest.setLastModified/rrc��y)a

        Set an C{entity tag} for the outgoing response.

        That's "entity tag" as in the HTTP/1.1 I{ETag} header, "used for
        comparing two or more entities from the same requested resource."

        If I am a conditional request, I may modify my response code to
        L{NOT_MODIFIED<http.NOT_MODIFIED>} or
        L{PRECONDITION_FAILED<http.PRECONDITION_FAILED>}, if appropriate for the
        tag given.

        @param etag: The entity tag for the resource being returned.
        @type etag: L{str}

        @return: If I am a C{If-None-Match} conditional request and the tag
            matches one in the request, I return L{CACHED<http.CACHED>} to
            indicate that you should write no body.  Otherwise, I return a
            false value.
        Nr)�etags r�setETagzIRequest.setETagDrrc��y)a�
        Change the host and port the request thinks it's using.

        This method is useful for working with reverse HTTP proxies (e.g.  both
        Squid and Apache's mod_proxy can do this), when the address the HTTP
        client is using is different than the one we're listening on.

        For example, Apache may be listening on https://www.example.com, and
        then forwarding requests to http://localhost:8080, but we don't want
        HTML produced by Twisted to say 'http://localhost:8080', they should
        say 'https://www.example.com', so we do::

           request.setHost('www.example.com', 443, ssl=1)
        Nr)�host�port�ssls   r�setHostzIRequest.setHostYrr)N)NNNNNN)r)&�__name__�
__module__�__qualname__�__doc__r�method�urirA�args�prepath�postpath�requestHeaders�content�responseHeadersrrrrr r"r$r&r(r*r-r/r1r3r5r7r;rErIrKrNrQrTrYrrrrrs&����I�
J�F�
�	��C��	&��D��	 ��D��	,��G�
�	<��H�
�	��N�
�	1��G� �	��O�
�
���0��	������
����
���
�����$����*�*rrc��eZdZdZd�Zy)�INonQueuedRequestFactoryzU
    A factory of L{IRequest} objects that does not take a ``queued`` parameter.
    c��y)an
        Create an L{IRequest} that is operating on the given channel. There
        must only be one L{IRequest} object processing at any given time on a
        channel.

        @param channel: A L{twisted.web.http.HTTPChannel} object.
        @type channel: L{twisted.web.http.HTTPChannel}

        @return: A request object.
        @rtype: L{IRequest}
        Nr)�channels r�__call__z!INonQueuedRequestFactory.__call__orrN�rZr[r\r]rjrrrrgrgjs���rrgc��eZdZdZd�Zy)�IAccessLogFormatterzr
    An object which can represent an HTTP request as a line of text for
    inclusion in an access log file.
    c��y)a�
        Generate a line for the access log.

        @param timestamp: The time at which the request was completed in the
            standard format for access logs.
        @type timestamp: L{unicode}

        @param request: The request object about which to log.
        @type request: L{twisted.web.server.Request}

        @return: One line describing the request without a trailing newline.
        @rtype: L{unicode}
        Nr)�	timestamp�requests  rrjzIAccessLogFormatter.__call__�rrNrkrrrrmrm}s���

rrmc�,�eZdZdZed�Zd�Zd�Zy)�ICredentialFactoryai
    A credential factory defines a way to generate a particular kind of
    authentication challenge and a way to interpret the responses to these
    challenges.  It creates
    L{ICredentials<twisted.cred.credentials.ICredentials>} providers from
    responses.  These objects will be used with L{twisted.cred} to authenticate
    an authorize requests.
    z�A L{str} giving the name of the authentication scheme with which this factory is associated.  For example, C{'basic'} or C{'digest'}.c��y)aW
        Generate a new challenge to be sent to a client.

        @type request: L{twisted.web.http.Request}
        @param request: The request the response to which this challenge will
            be included.

        @rtype: L{dict}
        @return: A mapping from L{str} challenge fields to associated L{str}
            values.
        Nr�rps r�getChallengezICredentialFactory.getChallenge�rrc��y)a
        Create a credentials object from the given response.

        @type response: L{str}
        @param response: scheme specific response string

        @type request: L{twisted.web.http.Request}
        @param request: The request being processed (from which the response
            was taken).

        @raise twisted.cred.error.LoginFailed: If the response is invalid.

        @rtype: L{twisted.cred.credentials.ICredentials} provider
        @return: The credentials represented by the given response.
        Nr)�responserps  r�decodezICredentialFactory.decode�rrN)rZr[r\r]r�schemerurxrrrrrrr�s#����	O��F�
�rrrc�,�eZdZdZed�Zd�Zd�Zy)�
IBodyProducera�
    Objects which provide L{IBodyProducer} write bytes to an object which
    provides L{IConsumer<twisted.internet.interfaces.IConsumer>} by calling its
    C{write} method repeatedly.

    L{IBodyProducer} providers may start producing as soon as they have an
    L{IConsumer<twisted.internet.interfaces.IConsumer>} provider.  That is, they
    should not wait for a C{resumeProducing} call to begin writing data.

    L{IConsumer.unregisterProducer<twisted.internet.interfaces.IConsumer.unregisterProducer>}
    must not be called.  Instead, the
    L{Deferred<twisted.internet.defer.Deferred>} returned from C{startProducing}
    must be fired when all bytes have been written.

    L{IConsumer.write<twisted.internet.interfaces.IConsumer.write>} may
    synchronously invoke any of C{pauseProducing}, C{resumeProducing}, or
    C{stopProducing}.  These methods must be implemented with this in mind.

    @since: 9.0
    z�
        C{length} is a L{int} indicating how many bytes in total this
        L{IBodyProducer} will write to the consumer or L{UNKNOWN_LENGTH}
        if this is not known in advance.
        c��y)a�
        Start producing to the given
        L{IConsumer<twisted.internet.interfaces.IConsumer>} provider.

        @return: A L{Deferred<twisted.internet.defer.Deferred>} which stops
            production of data when L{Deferred.cancel} is called, and which
            fires with L{None} when all bytes have been produced or with a
            L{Failure<twisted.python.failure.Failure>} if there is any problem
            before all bytes have been produced.
        Nr)�consumers r�startProducingzIBodyProducer.startProducing�rrc��y)a)
        In addition to the standard behavior of
        L{IProducer.stopProducing<twisted.internet.interfaces.IProducer.stopProducing>}
        (stop producing data), make sure the
        L{Deferred<twisted.internet.defer.Deferred>} returned by
        C{startProducing} is never fired.
        Nrrrr�
stopProducingzIBodyProducer.stopProducing�rrN)rZr[r\r]r�lengthr~r�rrrr{r{�s"���8�	��F�
�rr{c�J�eZdZdZdedeeedgdffd�Zdeeddfd�Z	y	)
�IRenderablezs
    An L{IRenderable} is an object that may be rendered by the
    L{twisted.web.template} templating system.
    �name�returnrr
c��y)a�
        Look up and return the render method associated with the given name.

        @param name: The value of a render directive encountered in the
            document returned by a call to L{IRenderable.render}.

        @return: A two-argument callable which will be invoked with the request
            being responded to and the tag object on which the render directive
            was encountered.
        Nr)r�s r�lookupRenderMethodzIRenderable.lookupRenderMethodrrrpc��y)z�
        Get the document for this L{IRenderable}.

        @param request: The request in response to which this method is being
            invoked.

        @return: An object which can be flattened.
        Nrrts r�renderzIRenderable.renderrrN)
rZr[r\r]�strrrrr�r�rrrr�r��sH���
���	�8�H�%�u�-�}�<�	=�����*��}�rr�c�"�eZdZdZdedfd�Zy)�ITemplateLoaderz|
    A loader for templates; something usable as a value for
    L{twisted.web.template.Element}'s C{loader} attribute.
    r�r
c��y)z�
        Load a template suitable for rendering.

        @return: a L{list} of flattenable objects, such as byte and unicode
            strings, L{twisted.web.template.Element}s and L{IRenderable} providers.
        Nrrrr�loadzITemplateLoader.load!rrN)rZr[r\r]rr�rrrr�r�s���
�$�}�%�rr�c��eZdZdZed�Zed�Zed�Zed�Zed�Z	ed�Z
ed�Zd	�Zd
�Z
y)�	IResponseza
    An object representing an HTTP response received from an HTTP server.

    @since: 11.1
    z�A three-tuple describing the protocol and protocol version of the response.  The first element is of type L{str}, the second and third are of type L{int}.  For example, C{(b'HTTP', 1, 1)}.z3The HTTP status code of this response, as a L{int}.z5The HTTP reason phrase of this response, as a L{str}.z.The HTTP response L{Headers} of this response.aThe L{int} number of bytes expected to be in the body of this response or L{UNKNOWN_LENGTH} if the server did not indicate how many bytes to expect.  For I{HEAD} responses, this will be 0; if the response includes a I{Content-Length} header, it will be available in C{headers}.z5The L{IClientRequest} that resulted in this response.z�The previous L{IResponse} from a redirect, or L{None} if there was no previous response. This can be used to walk the response or request history for redirections.c��y)a�
        Register an L{IProtocol<twisted.internet.interfaces.IProtocol>} provider
        to receive the response body.

        The protocol will be connected to a transport which provides
        L{IPushProducer}.  The protocol's C{connectionLost} method will be
        called with:

            - ResponseDone, which indicates that all bytes from the response
              have been successfully delivered.

            - PotentialDataLoss, which indicates that it cannot be determined
              if the entire response body has been delivered.  This only occurs
              when making requests to HTTP servers which do not set
              I{Content-Length} or a I{Transfer-Encoding} in the response.

            - ResponseFailed, which indicates that some bytes from the response
              were lost.  The C{reasons} attribute of the exception may provide
              more specific indications as to why.
        Nr)�protocols r�deliverBodyzIResponse.deliverBodyMrrc��y)z�
        Set the reference to the previous L{IResponse}.

        The value of the previous response can be read via
        L{IResponse.previousResponse}.
        Nr)rws r�setPreviousResponsezIResponse.setPreviousResponsecrrN)rZr[r\r]r�versionrG�phrase�headersr�rp�previousResponser�r�rrrr�r�*sr����	J��G��J�K�D�
�N�
O�F��H�I�G�
�	#��F��O�P�G� �	$����,rr�c��eZdZdZd�Zd�Zy)�_IRequestEncoderzy
    An object encoding data passed to L{IRequest.write}, for example for
    compression purpose.

    @since: 12.3
    c��y)z�
        Encode the data given and return the result.

        @param data: The content to encode.
        @type data: L{str}

        @return: The encoded data.
        @rtype: L{str}
        Nrr9s r�encodez_IRequestEncoder.encodetrrc��y)z�
        Callback called when the request is closing.

        @return: If necessary, the pending data accumulated from previous
            C{encode} calls.
        @rtype: L{str}
        Nrrrrr7z_IRequestEncoder.finishrrN)rZr[r\r]r�r7rrrr�r�ls���	�rr�c��eZdZdZd�Zy)�_IRequestEncoderFactoryzQ
    A factory for returing L{_IRequestEncoder} instances.

    @since: 12.3
    c��y)zn
        If applicable, returns a L{_IRequestEncoder} instance which will encode
        the request.
        Nrrts r�encoderForRequestz)_IRequestEncoderFactory.encoderForRequest�rrN)rZr[r\r]r�rrrr�r��s���rr�c�@�eZdZdZed�Zed�Zed�Zy)�IClientRequestz]
    An object representing an HTTP request to make to an HTTP server.

    @since: 13.1
    zcThe HTTP method for this request, as L{bytes}. For example: C{b'GET'}, C{b'HEAD'}, C{b'POST'}, etc.zmThe absolute URI of the requested resource, as L{bytes}; or L{None} if the absolute URI cannot be determined.zTHeaders to be sent to the server, as a L{twisted.web.http_headers.Headers} instance.N)rZr[r\r]rr^�absoluteURIr�rrrr�r��s:����	2��F�
�	4��K�
�	:��Grr�c�D�eZdZdZ		d	dededeedeedee	f
d�Z
y)
�IAgenta�
    An agent makes HTTP requests.

    The way in which requests are issued is left up to each implementation.
    Some may issue them directly to the server indicated by the net location
    portion of the request URL.  Others may use a proxy specified by system
    configuration.

    Processing of responses is also left very widely specified.  An
    implementation may perform no special handling of responses, or it may
    implement redirect following or content negotiation, it may implement a
    cookie store or automatically respond to authentication challenges.  It may
    implement many other unforeseen behaviors as well.

    It is also intended that L{IAgent} implementations be composable.  An
    implementation which provides cookie handling features should re-use an
    implementation that provides connection pooling and this combination could
    be used by an implementation which adds content negotiation functionality.
    Some implementations will be completely self-contained, such as those which
    actually perform the network operations to send and receive requests, but
    most or all other implementations should implement a small number of new
    features (perhaps one new feature) and delegate the rest of the
    request/response machinery to another implementation.

    This allows for great flexibility in the behavior an L{IAgent} will
    provide.  For example, an L{IAgent} with web browser-like behavior could be
    obtained by combining a number of (hypothetical) implementations::

        baseAgent = Agent(reactor)
        decode = ContentDecoderAgent(baseAgent, [(b"gzip", GzipDecoder())])
        cookie = CookieAgent(decode, diskStore.cookie)
        authenticate = AuthenticateAgent(
            cookie, [diskStore.credentials, GtkAuthInterface()])
        cache = CacheAgent(authenticate, diskStore.cache)
        redirect = BrowserLikeRedirectAgent(cache, limit=10)

        doSomeRequests(cache)
    Nr^r_r��bodyProducerr�c��y)a\
        Request the resource at the given location.

        @param method: The request method to use, such as C{b"GET"}, C{b"HEAD"},
            C{b"PUT"}, C{b"POST"}, etc.

        @param uri: The location of the resource to request.  This should be an
            absolute URI but some implementations may support relative URIs
            (with absolute or relative paths).  I{HTTP} and I{HTTPS} are the
            schemes most likely to be supported but others may be as well.

        @param headers: The headers to send with the request (or L{None} to
            send no extra headers).  An implementation may add its own headers
            to this (for example for client identification or content
            negotiation).

        @param bodyProducer: An object which can generate bytes to make up the
            body of this request (for example, the properly encoded contents of
            a file for a file upload).  Or, L{None} if the request is to have
            no body.

        @return: A L{Deferred} that fires with an L{IResponse} provider when
            the header of the response has been received (regardless of the
            response status code) or with a L{Failure} if there is any problem
            which prevents that response from being received (including
            problems that prevent the request from being sent).
        Nr)r^r_r�r�s    rrpzIAgent.request�rr)NN)rZr[r\r]�bytesrrr{r
r�rprrrr�r��sR��%�T&*�04�	 �� �
� ��'�"� ��}�-�	 �

�)�	� rr�c��eZdZdZd�Zy)�IPolicyForHTTPSa
    An L{IPolicyForHTTPS} provides a policy for verifying the certificates of
    HTTPS connections, in the form of a L{client connection creator
    <twisted.internet.interfaces.IOpenSSLClientConnectionCreator>} per network
    location.

    @since: 14.0
    c��y)a�
        Create a L{client connection creator
        <twisted.internet.interfaces.IOpenSSLClientConnectionCreator>}
        appropriate for the given URL "netloc"; i.e. hostname and port number
        pair.

        @param hostname: The name of the requested remote host.
        @type hostname: L{bytes}

        @param port: The number of the requested remote port.
        @type port: L{int}

        @return: A client connection creator expressing the security
            requirements for the given remote host.
        @rtype: L{client connection creator
            <twisted.internet.interfaces.IOpenSSLClientConnectionCreator>}
        Nr)�hostnamerWs  r�creatorForNetlocz IPolicyForHTTPS.creatorForNetlocrrN)rZr[r\r]r�rrrr�r��s���rr�c��eZdZdZd�Zy)�IAgentEndpointFactoryz�
    An L{IAgentEndpointFactory} provides a way of constructing an endpoint
    used for outgoing Agent requests. This is useful in the case of needing to
    proxy outgoing connections, or to otherwise vary the transport used.

    @since: 15.0
    c��y)a�
        Construct and return an L{IStreamClientEndpoint} for the outgoing
        request's connection.

        @param uri: The URI of the request.
        @type uri: L{twisted.web.client.URI}

        @return: An endpoint which will have its C{connect} method called to
            issue the request.
        @rtype: an L{IStreamClientEndpoint} provider

        @raises twisted.internet.error.SchemeNotSupported: If the given
            URI's scheme cannot be handled by this factory.
        Nr)r_s r�endpointForURIz$IAgentEndpointFactory.endpointForURI rrN)rZr[r\r]r�rrrr�r�s���rr�ztwisted.web.iweb.UNKNOWN_LENGTH)
r	rrrr{r�r�r�r�r��UNKNOWN_LENGTHN)$r]�typingrrrr�zope.interfacerr�twisted.cred.credentialsr	�twisted.internet.deferr
�twisted.internet.interfacesr�twisted.web.http_headersr�twisted.web.templater
rrrgrmrrr{r�r�r�r�r�r�r�r�r�r��__all__rrr�<module>r�s���
�;�:�/�8�+�5�,��5�N�y�N�b
�y��&�)��,+��+�\8�M�8�v�)��>�i��?�	�?�D�y��:�i���Y��.H�Y�H�V�i��<�I��43���r
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!