1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

add very simple http/2 test

This commit is contained in:
Nikolay Kim
2018-01-09 12:49:46 -08:00
parent 584d0c9e99
commit 6c7dda495b
2 changed files with 40 additions and 0 deletions

View File

@ -146,6 +146,11 @@ impl TestServer {
tcp.local_addr().unwrap()
}
/// Construct test server url
pub fn addr(&self) -> net::SocketAddr {
self.addr
}
/// Construct test server url
pub fn url(&self, uri: &str) -> String {
if uri.starts_with('/') {