pub async fn make_request<RequestBodyType: Serialize + Debug>(
        &self,
        method: Method,
        path: &str,
        request_body: Option<RequestBodyType>,
        expected_status: StatusCode,
    ) -> Result<Response<Body>, HttpErrorResponseBody> {
        let body: Body = match request_body {
            None => Body::empty(),
            Some(input) => serde_json::to_string(&input).unwrap().into(),
        };

        self.make_request_with_body(method, path, body, expected_status).await
    }
/**
     * Execute an HTTP request against the test server and perform basic
     * validation of the result, including:
     *
     * - the expected status code
     * - the expected Date header (within reason)
     * - for error responses: the expected body content
     * - header names are in allowed list
     * - any other semantics that can be verified in general
     */
Execute an HTTP request against the test server and perform basic
validation of the result, including.


Execute an HTTP request against the test server and perform basic validation of the result including .
pub async fn make_request<RequestBodyType: Serialize + Debug>(
        &self,
        method: Method,
        path: &str,
        request_body: Option<RequestBodyType>,
        expected_status: StatusCode,
    ) -> Result<Response<Body>, HttpErrorResponseBody> {
        let body: Body = match request_body {
            None => Body::empty(),
            Some(input) => serde_json::to_string(&input).unwrap().into(),
        };
        self.make_request_with_body(method, path, body, expected_status).await
    }
pub async fn make_request < RequestBodyType : Serialize + Debug > ( & self , method : Method , path : & str , request_body : Option < RequestBodyType > , expected_status : StatusCode , ) -> Result < Response < Body > , HttpErrorResponseBody > { let body : Body = match request_body { None => Body :: empty ( ) , Some ( input ) => serde_json :: to_string ( & input ) . unwrap ( ) . into ( ) , } ; self . make_request_with_body ( method , path , body , expected_status ) . await }
Execute an HTTP request against the test server and perform basic
 validation of the result, including:
Execute an HTTP request against the test server and perform basic validation of the result including :
&self
method
Method
path
&str
request_body
Option<RequestBodyType>
expected_status
StatusCode
&self
method
Method
path
&str
request_body
Option<RequestBodyType>
expected_status
StatusCode