aiorest
aiorest copied to clipboard
REST interface for server based on aiohttp (abandoned)
in cookie_session_test.py
I have to pronounce that. We always assumed the library is _experimental_ and never promoted the library. For now the most important _aiorest_ parts are transplanted to _aiohttp_ itself --...
What do you think?
Maybe also use [constants of http.client module](https://docs.python.org/3.5/library/http.client.html#http.client.HTTPS_PORT) like: `RESTError('BAD_REQUEST')` or `RESTError(RESTError.BAD_REQUEST)`?
This is needed to allow javascript requests. see [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS)
It's unacceptable to feed payload of unlimited size
Session should have session factory and probably ABC. Implementations may be Redis, database, file, client-side etc.