def new_connection(client): parser =HttpParser(kind=0) parser.environ = True client.on( "data", on_read, parser , client ).on( "error", on_error, client )
def new_connection(client): parser = HttpParser(kind=0) parser.environ = True client.on("data", on_read, parser, client).on("error", on_error, client)