Skip to content

Make middlewares work with result builders #186

Description

@czechboy0

The existing prototype in the Middleware module doesn't yet work correctly, this issue tracks being able to write something like:

try await server.serve(
  handler: terminalHandler
) {
  LoggingMiddleware()
  MetricsMiddleware()
  if authEnabled {
    AuthMiddleware()
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions