-
Alexandru Vasile authored
* http: Add inner server data structure Signed-off-by: Alexandru Vasile <[email protected]> * http: Handle RPC messages Signed-off-by: Alexandru Vasile <[email protected]> * http: Implement equivalent of `service_fn` Signed-off-by: Alexandru Vasile <[email protected]> * http: Implement equivalent of `make_service_fn` Signed-off-by: Alexandru Vasile <[email protected]> * http: Expose `tower` compatible service Signed-off-by: Alexandru Vasile <[email protected]> * http: Prebuild http server with optional listener Signed-off-by: Alexandru Vasile <[email protected]> * examples: WIP tower service Signed-off-by: Alexandru Vasile <[email protected]> * http: Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * tower_http: Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * http: Ensure service works with tower Signed-off-by: Alexandru Vasile <[email protected]> * http: Remove `RPSeeServerMakeSvc` to allow further flexibility Signed-off-by: Alexandru Vasile <[email protected]> * tower_http: Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * tower_http: Resubmit the same request for testing Signed-off-by: Alexandru Vasile <[email protected]> * http: Transform builder into service directly Signed-off-by: Alexandru Vasile <[email protected]> * http: Rename `RPSeeServerSvc` into user friendly `TowerService` Signed-off-by: Alexandru Vasile <[email protected]> * http: Rely on internal TowerService to handle requests Signed-off-by: Alexandru Vasile <[email protected]> * Fix middleware typo Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Improve API builder for tower service Signed-off-by: Alexandru Vasile <[email protected]> * Rename the inner service data and check comments Signed-off-by: Alexandru Vasile <[email protected]> * examples: Add comments Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Receive tower service builder as param Signed-off-by: Alexandru Vasile <[email protected]> * examples: Adjust tower_http example Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Add tower middleware on the HttpBuilder Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Do not expose the internal `TowerService` for now Signed-off-by: Alexandru Vasile <[email protected]> * Update http-server/src/server.rs Co-authored-by: Niklas Adolfsson <[email protected]> * http-server: Use `std::error::Error` Signed-off-by: Alexandru Vasile <[email protected]> * Fix fmt Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Remove header and CORS validation Signed-off-by: Alexandru Vasile <[email protected]> * core: Remove CORS logic Signed-off-by: Alexandru Vasile <[email protected]> * examples: Add custom CORS layer to the RPC Signed-off-by: Alexandru Vasile <[email protected]> * address some grumbles * fix more grumbles: no more Infallible * make clippy happy * Rename tower http example Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Remove handling of OPTIONS request Signed-off-by: Alexandru Vasile <[email protected]> * tests: Test CORS with external layers Signed-off-by: Alexandru Vasile <[email protected]> * examples: Document access control and external CORS layer Signed-off-by: Alexandru Vasile <[email protected]> * Remove unused deps Signed-off-by: Alexandru Vasile <[email protected]> * remove unused CORS code * Remove extra lifetime param Signed-off-by: Alexandru Vasile <[email protected]> * Rename `invalid_allow_origin` to `origin_rejected` Signed-off-by: Alexandru Vasile <[email protected]> * Fix clippy Signed-off-by: Alexandru Vasile <[email protected]> * Update core/src/server/access_control/origin.rs Co-authored-by: Niklas Adolfsson <[email protected]> * Rename `AnyNonNull` to `Wildcard` Signed-off-by: Alexandru Vasile <[email protected]> * Rename `OriginType` to `Origin` Signed-off-by: Alexandru Vasile <[email protected]> Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>