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

Expose http.ServeMux to allow applications to add additional endpoints #212

Closed
benpye opened this issue Jan 28, 2022 · 1 comment
Closed

Comments

@benpye
Copy link

benpye commented Jan 28, 2022

It would be useful to expose the http.ServeMux so an application could add an additional listener without needing to listen on a new port. In my case I want to expose a Prometheus metric endpoint, currently I need to listen on an additional point but I don't think there is any reason this should be necessary.

@brutella
Copy link
Owner

brutella commented Mar 2, 2022

I've refactored hc and made a new library out of it. The new library is available as hap.
The new hap server gives you access to the ServeMux.

@brutella brutella closed this as completed Mar 2, 2022
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