Function http_typed::send

source ·
pub async fn send<Req>(
    base_url: &str,
    request: Req
) -> Result<Req::Response, Error>where
    Req: Request + Serialize,
    Req::Response: for<'a> Deserialize<'a>,
Expand description

Send the provided request to the host at the specified base url, using the request metadata specified by the Request implementation.