def send_stream(arg1, arg2, arg3, host): tchannel = TChannel() response = yield tchannel.request(host).send( arg1, arg2, arg3) yield print_arg(response, 0) yield print_arg(response, 1) yield print_arg(response, 2)
def say_ok(request, response, proxy): yield print_arg(request, 1) yield print_arg(request, 2) response.set_body_s(InMemStream("world"))