pub fn check_response(srv: &mut TestServer, req: ClientRequest, exp: StatusCode) -> bool {
    println!("{:?}", req);
    let resp = srv.execute(req.send()).unwrap();
    println!("{:?}", resp);

    resp.status() == exp
}
/// Sends a response to the server and checks if the status code matches
/// the expected status code.  Returns true if statuses match, or false
/// otherwise
///
/// # Arugments
///
/// * `srv` - An instance of a TestServer
/// * `req` - The client request to send
/// * `exp` - The expected HTTP status code
Sends a response to the server and checks if the status code matches
the expected status code.  Returns true if statuses match, or false
otherwise
Sends a response to the server and checks if the status code matches the expected status code . Returns true if statuses match or false otherwise
pub fn check_response(srv: &mut TestServer, req: ClientRequest, exp: StatusCode) -> bool {
    println!("{:?}", req);
    let resp = srv.execute(req.send()).unwrap();
    println!("{:?}", resp);
    resp.status() == exp
}
pub fn check_response ( srv : & mut TestServer , req : ClientRequest , exp : StatusCode ) -> bool { println ! ( " " req ) ; let resp = srv . execute ( req . send ( ) ) . unwrap ( ) ; println ! ( " " resp ) ; resp . status ( ) == exp }
Sends a response to the server and checks if the status code matches
the expected status code.
Sends a response to the server and checks if the status code matches the expected status code .
srv
&mut TestServer
req
ClientRequest
exp
StatusCode
srv
&mut TestServer
req
ClientRequest
exp
StatusCode
arugments
`srv` - An instance of a TestServer
`req` - The client request to send
`exp` - The expected HTTP status code
` srv ` - An instance of a TestServer ` req ` - The client request to send ` exp ` - The expected HTTP status code