Unverified Commit bf73876d authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

replace `WS and HTTP servers` with a server that supports both `WS and HTTP` (#863)



* ws server: support both http and ws

* clean things up

* ws server: add http logger and ws logger

* more cleanup

* fix nits

* middleware example

* remove http and ws server crates

* move things around

* some minor fixes

* fix stop in http context

* fix tests

* fix features

* use header constants

* remove access_control & expose only host filtering

CORS has been removed to tower middleware and doesn't need to supported anymore

* fix merge logging traits + move to server

* supress warnings faulty dead code

* remove unwrap

* support http2

* doesnt work

* feat: simpler stop handling

* Update server/src/future.rs

* some cleanup

* Update server/src/future.rs

Co-authored-by: default avatarAlexandru Vasile <[email protected]>

* Update server/src/future.rs

Co-authored-by: default avatarAlexandru Vasile <[email protected]>

* fix nits

* address grumbles

* commit examples and nits

* clarify comment

* remove noise

* remove impl Future for ServerHandle

* remove needless async {}

* add http2 test

* add ServerBuilder::build_from_tcp

* fix super nit: no more Option<SocketAddr>

* fix Option<SocketAddr>

* Update server/src/future.rs

Co-authored-by: default avatarAlexandru Vasile <[email protected]>

* Update server/src/future.rs

Co-authored-by: default avatarAlexandru Vasile <[email protected]>

Co-authored-by: default avatarAlexandru Vasile <[email protected]>
parent 41b8a2c9
Pipeline #214546 passed with stages
in 4 minutes and 56 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