1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

feature: allow TestServer to open a websocket on any URL

* added `TestServer::ws_at(uri_str)`
* modified `TestServer::ws()` to call `self.ws_at("/")` to preserve
behavior

Closes #432
This commit is contained in:
jrconlin
2018-07-31 16:21:18 -07:00
parent 2071ea0532
commit dca4c110dd
3 changed files with 54 additions and 4 deletions

View File

@ -6,6 +6,8 @@
* Support HTTP/2 with rustls #36
* Allow TestServer to open a websocket on any URL # 433
### Fixed
* Do not override HOST header for client request #428
@ -22,7 +24,7 @@
* Add implementation of `FromRequest<S>` for `Option<T>` and `Result<T, Error>`
* Allow to handle application prefix, i.e. allow to handle `/app` path
for application with `/app` prefix.
for application with `/app` prefix.
Check [`App::prefix()`](https://actix.rs/actix-web/actix_web/struct.App.html#method.prefix)
api doc.