Skip to main content

create_test_response

Function create_test_response 

Source
pub fn create_test_response() -> Response
Expand description

Create a mock response for testing

Returns a default 200 OK response.

ยงExamples

use reinhardt_testkit::http::create_test_response;
use hyper::StatusCode;

let response = create_test_response();
assert_eq!(response.status, StatusCode::OK);