Function ockam_node::api::request
source · [−]pub async fn request<T, R>(
ctx: &mut Context,
label: &str,
schema: impl Into<Option<&str>>,
route: R,
req: RequestBuilder<'_, T>
) -> Result<Vec<u8>> where
T: Encode<()>,
R: Into<Route> + Display, Expand description
Encode request header and body (if any), send the package to the server and returns its response.