get_bytes

Function get_bytes 

Source
pub async fn get_bytes(url: &str) -> Result<Vec<u8>, HttpError>
Expand description

快捷 GET 请求并获取字节

§Example

let bytes = get_bytes("https://example.com/image.png").await?;