示例#1
0
    def __init__(self, parent, transport, type, client_handle):
        TransportContext.__init__(self, parent, transport, type)

        self.client_handle = client_handle
        """TwistedWebSocketProtocol instance."""

        self.parent = parent
        """Parent Context"""
示例#2
0
    def __init__(self, parent, transport, type, client_handle):
        TransportContext.__init__(self, parent, transport, type)

        self.client_handle = client_handle
        """TwistedWebSocketProtocol instance."""

        self.parent = parent
        """Parent Context"""
示例#3
0
文件: http.py 项目: Bernie/spyne
    def __init__(self, transport, request, content_type):
        TransportContext.__init__(self, transport, 'http')

        self.req = request
        """HTTP Request. This is transport-specific"""

        self.resp_headers = {
        }
        """HTTP Response headers."""

        self.mime_type = content_type

        self.resp_code = None
        """HTTP Response code."""

        self.wsdl = None
        """The WSDL document that is being returned. Only relevant when handling
        WSDL requests."""

        self.wsdl_error = None
        """The error when handling WSDL requests."""
示例#4
0
文件: http.py 项目: Bluehorn/spyne
    def __init__(self, transport, request, content_type):
        TransportContext.__init__(self, transport, 'http')

        self.req = request
        """HTTP Request. This is transport-specific"""

        assert isinstance(content_type, str)
        self.resp_headers = {
            'Content-Type': content_type,
            'Content-Length': None,
        }
        """HTTP Response headers."""

        self.resp_code = None
        """HTTP Response code."""

        self.wsdl = None
        """The WSDL document that is being returned. Only relevant when handling
        WSDL requests."""

        self.wsdl_error = None
        """The error when handling WSDL requests."""
示例#5
0
    def __init__(self, transport, request, content_type):
        TransportContext.__init__(self, transport, 'http')

        self.req = request
        """HTTP Request. This is transport-specific"""

        assert isinstance(content_type, str)
        self.resp_headers = {
            'Content-Type': content_type,
            'Content-Length': None,
        }
        """HTTP Response headers."""

        self.resp_code = None
        """HTTP Response code."""

        self.wsdl = None
        """The WSDL document that is being returned. Only relevant when handling
        WSDL requests."""

        self.wsdl_error = None
        """The error when handling WSDL requests."""
示例#6
0
    def __init__(self, transport, type, client_handle, parent):
        TransportContext.__init__(self, transport, type)

        self.client_handle = client_handle
        self.parent = parent