pub fn index(srv: &mut TestServer, token: Option<&str>) {
    let request = build_get(srv, "/", token);
    assert!(
        check_response(srv, request, StatusCode::OK),
        "Failed to GET /index!"
    );
}
/// Attempts to get the index page
/// Note: This should always succeed
///
/// # Arguments
///
/// * `srv` - An instance of a TestServer
/// * `token` - An optional authorization token
Attempts to get the index page
Note: This should always succeed
Attempts to get the index page Note : This should always succeed
pub fn index(srv: &mut TestServer, token: Option<&str>) {
    let request = build_get(srv, "/", token);
    assert!(
        check_response(srv, request, StatusCode::OK),
        "Failed to GET /index!"
    );
}
pub fn index ( srv : & mut TestServer , token : Option < & str > ) { let request = build_get ( srv , " " , token ) ; assert ! ( check_response ( srv request StatusCode OK ) " " ) ; }
Attempts to get the index page
Note: This should always succeed
Attempts to get the index page Note : This should always succeed
srv
&mut TestServer
token
Option<&str>
srv
&mut TestServer
token
Option<&str>