Пример #1
0
    def make_cext(cb_factory):
        on_headers = cb_factory()
        on_error = cb_factory()
        on_body = cb_factory()
        parser_cext = \
            impl_cext.HttpRequestParser(on_headers, on_body, on_error)

        return parser_cext, on_headers, on_error, on_body
Пример #2
0
        def make_cext():
            on_headers = Mock()
            on_error = Mock()
            on_body = Mock()
            parser_cext = \
                impl_cext.HttpRequestParser(on_headers, on_body, on_error)

            return parser_cext, on_headers, on_error, on_body
Пример #3
0
 def __init__(self):
     self.parser = impl_cext.HttpRequestParser(self.on_headers,
                                               self.on_body, self.on_error)
Пример #4
0
 def __init__(self, loop):
     print('__init__')
     self.parser = impl_cext.HttpRequestParser(self.on_headers,
                                               self.on_body, self.on_error)
     self.loop = loop
Пример #5
0
 def __init__(self, loop):
     self.parser = impl_cext.HttpRequestParser(self.on_headers,
                                               self.on_body,
                                               self.on_error)
     self.loop = loop
     self.response = Response()