Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Middleware to a single set of functions for all routes #3534

Merged
merged 5 commits into from
Jun 3, 2021

Commits on Jun 2, 2021

  1. Refactor Middleware to a single set of functions for all routes

    The multiple sets of Middleware functions was getting confusing and
    difficult to reason about. Now there is a single set of Middleware
    functions that run for every route before the handler is dispatched.
    
    A route can provide an OptionsOverride function to change the
    middleware.Options passed to the Middleware for a route. This
    allows a route to tweak how the Middleware runs for a route (e.g
    response logging).
    
    The set of Middleware is completely configurable on the
    HandlerOptions. If not set, a set of Default middleware is used.
    
    A CustomHandler can also provide an OptionOverride function, in addition
    to the OptionOverride already set on the previous handler. This allows
    further configuring the options for the CustomHandler.
    ryanhall07 committed Jun 2, 2021
    Configuration menu
    Copy the full SHA
    62ffe2a View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2021

  1. Configuration menu
    Copy the full SHA
    70a6d3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e108eec View commit details
    Browse the repository at this point in the history
  3. append fields

    ryanhall07 committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    fdb3721 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d8624a8 View commit details
    Browse the repository at this point in the history