Skip to content

feat: add Nack::Component and Nack::Middleware - #79

Merged
himura467 merged 1 commit into
mainfrom
feat-component
Nov 4, 2026
Merged

himura467 merged 1 commit into
mainfrom
feat-component

Conversation

@himura467

Copy link
Copy Markdown
Contributor

Closes #18

  • Adds Nack::Component, whose to_app runs the private prepare_app hook and returns the component.
  • Adds Nack::Middleware, deriving from it, whose call passes the request to the wrapped app. wrap(app) returns a copy of the instance, singleton methods included, holding app, so a frozen instance can be wrapped.

@himura467
himura467 merged commit 5377154 into main Nov 4, 2026
4 checks passed
@himura467
himura467 deleted the feat-component branch November 4, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Nack::Component and Nack::Middleware

1 participant