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

update tests

This commit is contained in:
Nikolay Kim
2019-03-11 16:42:33 -07:00
parent ad43ca735b
commit e15e4f18fd
6 changed files with 383 additions and 96 deletions

View File

@ -167,6 +167,11 @@ impl<T> TestServerRuntime<T> {
ClientRequest::get(self.url("/").as_str())
}
/// Create https `GET` request
pub fn sget(&self) -> ClientRequestBuilder {
ClientRequest::get(self.surl("/").as_str())
}
/// Create `POST` request
pub fn post(&self) -> ClientRequestBuilder {
ClientRequest::post(self.url("/").as_str())