-
Notifications
You must be signed in to change notification settings - Fork 174
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
refactor(server): make ProxyGetRequestLayer
http middleware support multiple path-method pairs
#1492
refactor(server): make ProxyGetRequestLayer
http middleware support multiple path-method pairs
#1492
Conversation
ProxyGetRequest
http middleware support multiple path-method pairsProxyGetRequestLayer
http middleware support multiple path-method pairs
… multiple path-method pairs **BREAKING CHNAGES**: - change `ProxyGetRequestLayer::new` method to support multiple path-method pairs - remove `ProxyGetRequest::new` method, which is useless
c62a917
to
e5ada32
Compare
@niklasad1 @jsdw PTAL |
@@ -15,27 +15,28 @@ publish = true | |||
|
|||
[dependencies] | |||
futures-util = { version = "0.3.14", default-features = false, features = ["io", "async-await-macro"] } | |||
jsonrpsee-types = { workspace = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you sort the dependencies here or why is this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is automatically done by my vscode extension if I change the Cargo.toml
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dq: that sounds useful, what extension are you using?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
I guess it may be useful for users that want to expose several endpoints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just some minor notes on deduplication of paths for better user errors
Thanks for contributing 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
BREAKING CHNAGES:
ProxyGetRequestLayer::new
method to support multiple path-method pairsProxyGetRequest::new
method, which is useless