/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
contrib/python/Twisted/py2/twisted/protocols/haproxy/_info.py
36 строк
929 B
Anton Myagkov
Update ydb version to 24.4 (#4579)
07 фев 2026, 11:59
Не верифицирован
07 фев 2026, 11:59
2c21cae
Код
Авторство
О чём код?
# -*- test-case-name: twisted.protocols.haproxy.test -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ IProxyInfo implementation. """ from zope.interface import implementer from ._interfaces import IProxyInfo @implementer(IProxyInfo) class ProxyInfo(object): """ A data container for parsed PROXY protocol information. @ivar header: The raw header bytes extracted from the connection. @type header: bytes @ivar source: The connection source address. @type source: L{twisted.internet.interfaces.IAddress} @ivar destination: The connection destination address. @type destination: L{twisted.internet.interfaces.IAddress} """ __slots__ = ( 'header', 'source', 'destination', ) def __init__(self, header, source, destination): self.header = header self.source = source self.destination = destination