Beispiel #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"""
Beispiel #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"""
Beispiel #3
0
    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."""
Beispiel #4
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."""
Beispiel #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."""
Beispiel #6
0
    def __init__(self, transport, type, client_handle, parent):
        TransportContext.__init__(self, transport, type)

        self.client_handle = client_handle
        self.parent = parent