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
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
def __init__(self): self.parser = impl_cext.HttpRequestParser(self.on_headers, self.on_body, self.on_error)
def __init__(self, loop): print('__init__') self.parser = impl_cext.HttpRequestParser(self.on_headers, self.on_body, self.on_error) self.loop = loop
def __init__(self, loop): self.parser = impl_cext.HttpRequestParser(self.on_headers, self.on_body, self.on_error) self.loop = loop self.response = Response()