Skip to content

interface Application restructuring #165

@Jaymon

Description

@Jaymon

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 it

Then 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions