-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I'm thinking it would be nice to switch how Application creation is done.
I could create an interface.Application that is laid out like this:
class Application(object):
def __init__(...):
# move BaseApplication.__init__ into here and save prefixes and kwargs
@classmethod
def create_asgi_interface(...):
# create an ASGI interface and return it
@classmethod
def create_wsgi_interface(...):
# create a WSGI interface and return itThen the new Interface instances should take an Application interface, or some way so the the load json, dump json, and handle error methods can be overridden and customized.
Basically, I want a way I can customize the Application but not have to choose ASGI or WSGI as the interface.
Metadata
Metadata
Assignees
Labels
No labels