def http_server(io_loop, app, netapi_port, client_headers): with netapi.TestsTornadoHttpServer( io_loop=io_loop, app=app, port=netapi_port, client_headers=client_headers) as server: yield server
def http_server(io_loop, app, netapi_port, content_type_map): with netapi.TestsTornadoHttpServer( io_loop=io_loop, app=app, port=netapi_port, client_headers={"Content-Type": content_type_map["form"]}, ) as server: yield server
def http_server(io_loop, app, netapi_port): with netapi.TestsTornadoHttpServer(io_loop=io_loop, app=app, port=netapi_port) as server: yield server