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

Using Kemal without including everything into global? #695

Open
robacarp opened this issue Nov 9, 2024 · 2 comments
Open

Using Kemal without including everything into global? #695

robacarp opened this issue Nov 9, 2024 · 2 comments

Comments

@robacarp
Copy link

robacarp commented Nov 9, 2024

Description

I've been toying with building a web interface in Kemal but I'd like it to be something that can be mounted as an HTTP::Handler inside another app, or used standalone.

I don't see anything in Wiki about:

  • Using kemal without includeing the DSL into the global namespace (if someone wants to add my app to the handler stack, I don't want it to patch a bunch of methods into global in their app)
  • Using Kemal as a sub-app or embeddable app

Is that possible at the moment? Is that something folks are interested in?

@straight-shoota
Copy link
Contributor

straight-shoota commented Nov 10, 2024

This is related to #441. Previous efforts to encapsulate Kemal instances are in #378 and #511. I don't think encapsulation is strictly a requirement for this issue, but it would solve it trivially.

It might be possible to implement it in a different way, though (with less changes to the internal structure).

@robacarp
Copy link
Author

Seems like it’s an abandoned effort then. Thank you!

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

No branches or pull requests

2 participants