http
ModuleHTTP calls as Target::call() makes them on cURL, on utopia-client.
Contents
use utopia_migration::http::Part;Rust
pub enum PartUndocumented.
use utopia_migration::http::call;Rust
pub async fn call(endpoint: &str, method: &str, path: &str, headers: &IndexMap<String, String>, params: &Array) -> Result<(Body, IndexMap<String, String>)>Undocumented.
use utopia_migration::http::multipart;Rust
pub fn multipart(parts: &[(String, Part)]) -> (String, Vec<u8>)A multipart body for parts, with a fixed boundary.
use utopia_migration::http::send;Rust
pub async fn send(method: &str, url: &str, headers: &[(String, String)], body: Option<Vec<u8>>, follow: bool) -> Result<(u16, IndexMap<String, String>, Bytes)>Sends one request and returns its status, lowercased headers and body.
use utopia_migration::http::user_agent;Rust
pub fn user_agent() -> StringUndocumented.