MCPcopy Create free account
hub / github.com/apache/dubbo-rust / into_http

Method into_http

dubbo/src/invocation.rs:55–68  ·  view source on GitHub ↗
(
        self,
        uri: http::Uri,
        method: http::Method,
        version: http::Version,
    )

Source from the content-addressed store, hash-verified

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

Callers 5

client_streamingMethod · 0.80
bidi_streamingMethod · 0.80
server_streamingMethod · 0.80
unaryMethod · 0.80
callMethod · 0.80

Calls 1

into_headersMethod · 0.80

Tested by

no test coverage detected