diff --git a/src/transport.rs b/src/transport.rs index 38889e81..3a9b75e0 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -89,15 +89,8 @@ pub mod http { .header(ContentLength(body_len)); } - /// Checks that a reqwest `Response` has a status code indicating success and contains all - /// required headers. - /// - /// In particular, the following headers must be present: - /// - /// ```notrust - /// Content-Type: text/xml - /// Content-Length:
- /// ``` + /// Checks that a reqwest `Response` has a status code indicating success and verifies certain + /// headers. pub fn check_response(response: &reqwest::Response) -> Result<(), Box