Closed jward-bw closed 3 years ago
Sorry for some reason my github notifications are broken. I would be open to make the endpoint configurable. I will review the code and let you know. Thank you for the pr!
Can you run cargo +nightly fmt --all
on your changes? Otherwise it looks good to me.
I'm not entirely sure about the ASCII requirement. I would expect to be able to use äöü
in my endpoints. Probably its good to have some sanitation and only allow correct paths instead. Probably we could use https://github.com/servo/rust-url for that.
That being said I think currently having the requirement to only allow ASCII is fine. We can always change it in the future if the need for non ASCII paths arises.
@jward-bw can you run cargo fmt (using nightly)? Can merge after that
Hey Alexander, thanks for getting back to me. Just got round to checking your comments. I've ran the nightly format and rebased to master. I might look at making non-ASCII usable separately if I find time for it.
Thank you for the contribution probably gonna release it to 0.8.2
soon.
Hi, hope you accept external PRs. I'd like to use this crate, but our monitoring stack is configured to have very particular endpoints to serve metrics on. Let me know if you want anything changed.