- 16 Aug, 2022 1 commit
-
-
Alexandru Vasile authored
* http: Add inner server data structure Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Handle RPC messages Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Implement equivalent of `service_fn` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Implement equivalent of `make_service_fn` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Expose `tower` compatible service Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Prebuild http server with optional listener Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: WIP tower service Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Fix warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tower_http: Fix warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Ensure service works with tower Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Remove `RPSeeServerMakeSvc` to allow further flexibility Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tower_http: Fix warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tower_http: Resubmit the same request for testing Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Transform builder into service directly Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Rename `RPSeeServerSvc` into user friendly `TowerService` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Rely on internal TowerService to handle requests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix middleware typo Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Improve API builder for tower service Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename the inner service data and check comments Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Add comments Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Receive tower service builder as param Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Adjust tower_http example Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Add tower middleware on the HttpBuilder Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Do not expose the internal `TowerService` for now Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update http-server/src/server.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * http-server: Use `std::error::Error` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix fmt Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Remove header and CORS validation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Remove CORS logic Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Add custom CORS layer to the RPC Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * address some grumbles * fix more grumbles: no more Infallible * make clippy happy * Rename tower http example Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Remove handling of OPTIONS request Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Test CORS with external layers Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Document access control and external CORS layer Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove unused deps Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * remove unused CORS code * Remove extra lifetime param Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `invalid_allow_origin` to `origin_rejected` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update core/src/server/access_control/origin.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Rename `AnyNonNull` to `Wildcard` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `OriginType` to `Origin` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 13 Jun, 2022 1 commit
-
-
Niklas Adolfsson authored
* initial rewrite to re-use HTTP access control * clean things up * Update core/src/error.rs * Update core/src/error.rs * allow origin: add back removed Display impl * cleanup again * Update http-server/src/lib.rs * Update examples/examples/cors_server.rs * Update core/src/server/access_control/mod.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update http-server/src/server.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * fix bad comment * remove todo * fix grumbles * more grumbles * rename and document a bit * remove `Access-Control-Allow-Origin` in whitelist * fix nit: pub(super) * fix bad naming Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com>
-