Unverified Commit 7eb5d47f authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

middleware: Implement proxy URI paths to RPC methods (#859)



* middleware: Proxy `GET /path` requests to internal methods

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* middleware: Modify the response for proxies

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* examples: Add `ProxyRequestLayer` example for URI redirection

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* http: Remove internal Health API

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* middleware: Replace `ResponseFuture` with pinning

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* middleware: Use `Uri::from_static` and `RequestSer` for body message

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* middleware: Use `Arc<str>` instead of `String`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* Rename `ProxyRequest` to `ProxyGetRequest` and rename mod to `middleware`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* middleware: Improve docs

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* middleware: Fail if path does not start with `/`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* http-server: Remove pin project dependency

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* Rename `proxy_request.rs` to `proxy_get_request.rs`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

Signed-off-by: default avatarAlexandru Vasile <[email protected]>
parent bd31557d
Pipeline #209958 passed with stages
in 5 minutes and 16 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment