Function http_typed::send_custom
source · pub async fn send_custom<Req, Res>(
url: &str,
method: HttpMethod,
request: Req
) -> Result<Res, Error>where
Req: Serialize,
Res: for<'a> Deserialize<'a>,Expand description
Send the provided request to the host at the specified base url using the specified method, and deserialize the response as the specified response type