ccd4c9615c
Update all tests to be compatible with requests-async Cleanup testing client changes with black and isort Remove Python 3.5 and other meta doc cleanup rename pyproject and fix pep517 error Add black config to tox.ini Cleanup tests and remove aiohttp tox.ini change for easier development commands Remove aiohttp from changelog and requirements Cleanup imports and Makefile
21 lines
368 B
Python
21 lines
368 B
Python
# Run with: python simple_server.py
|
|
import ujson
|
|
|
|
from tornado import ioloop, web
|
|
|
|
|
|
class MainHandler(web.RequestHandler):
|
|
def get(self):
|
|
self.write(ujson.dumps({"test": True}))
|
|
|
|
|
|
app = web.Application(
|
|
[(r"/", MainHandler)],
|
|
debug=False,
|
|
compress_response=False,
|
|
static_hash_cache=True,
|
|
)
|
|
|
|
app.listen(8000)
|
|
ioloop.IOLoop.current().start()
|