(
self,
uri: http::Uri,
method: http::Method,
version: http::Version,
)
| 53 | } |
| 54 | |
| 55 | pub fn into_http( |
| 56 | self, |
| 57 | uri: http::Uri, |
| 58 | method: http::Method, |
| 59 | version: http::Version, |
| 60 | ) -> http::Request<T> { |
| 61 | let mut http_req = http::Request::new(self.message); |
| 62 | *http_req.version_mut() = version; |
| 63 | *http_req.uri_mut() = uri; |
| 64 | *http_req.method_mut() = method; |
| 65 | *http_req.headers_mut() = self.metadata.into_headers(); |
| 66 | |
| 67 | http_req |
| 68 | } |
| 69 | |
| 70 | pub fn map<F, U>(self, f: F) -> Request<U> |
| 71 | where |
no test coverage detected