pub struct HttpTinyClient;Implementations§
Source§impl HttpTinyClient
impl HttpTinyClient
Sourcepub fn http_get(
url: &str,
headers: Option<&[String]>,
param_values: Option<&[String]>,
encoding: &str,
read_timeout_ms: u64,
) -> Result<HttpResult, Error>
pub fn http_get( url: &str, headers: Option<&[String]>, param_values: Option<&[String]>, encoding: &str, read_timeout_ms: u64, ) -> Result<HttpResult, Error>
Perform HTTP GET request
§Arguments
url- The URL to requestheaders- Optional list of headers (key-value pairs)param_values- Optional list of query parameters (key-value pairs)encoding- Character encoding (e.g., “UTF-8”)read_timeout_ms- Timeout in milliseconds
§Returns
HttpResult containing response code and content
Sourcepub fn http_post(
url: &str,
headers: Option<&[String]>,
param_values: Option<&[String]>,
encoding: &str,
read_timeout_ms: u64,
) -> Result<HttpResult, Error>
pub fn http_post( url: &str, headers: Option<&[String]>, param_values: Option<&[String]>, encoding: &str, read_timeout_ms: u64, ) -> Result<HttpResult, Error>
Perform HTTP POST request
§Arguments
url- The URL to requestheaders- Optional list of headers (key-value pairs)param_values- Optional list of form parameters (key-value pairs)encoding- Character encoding (e.g., “UTF-8”)read_timeout_ms- Timeout in milliseconds
§Returns
HttpResult containing response code and content
Auto Trait Implementations§
impl Freeze for HttpTinyClient
impl RefUnwindSafe for HttpTinyClient
impl Send for HttpTinyClient
impl Sync for HttpTinyClient
impl Unpin for HttpTinyClient
impl UnwindSafe for HttpTinyClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more