def streams_handler(file_id, action, input=None, output=None):
class _(BaseHTTPRequestHandler):
def do_POST(self):
handle_streams_request(self, file_id, action,
input=input, output=output)
return _