GithubHelp home page GithubHelp logo

Middleware about responder HOT 6 CLOSED

tomchristie avatar tomchristie commented on May 18, 2024 7
Middleware

from responder.

Comments (6)

tomchristie avatar tomchristie commented on May 18, 2024 2

Run it using uvicorn --debug example:app and you'll get in-browser tracebacks on exceptions and auto-reloading.

uvicorn.run(..., debug=True) is the equivalent thing programmatically, and will give you in-browser tracebacks, but isn't able to do auto-reloads.

from responder.

kennethreitz avatar kennethreitz commented on May 18, 2024

I'm open to that:

    def add_middleware(self, middleware_class, **options):
        self.middleware.append(middleware_class(self, **options))

from responder.

tomchristie avatar tomchristie commented on May 18, 2024

Also useful here - Starlette's ExceptionMiddleware

from responder.

ajitid avatar ajitid commented on May 18, 2024

Hey, any idea how to turn on debug mode in Responder?

from responder.

kennethreitz avatar kennethreitz commented on May 18, 2024

@ajitid it doesn't have it yet :)

from responder.

ajitid avatar ajitid commented on May 18, 2024

The reloader is not enabled when running programmatically.

Didn't knew this, and got confused.

from responder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.