pub struct Request { /* private fields */ }
Implementations§
source§impl Request
impl Request
sourcepub fn query<T: ToString, U: ToString>(self, param: T, value: U) -> Self
pub fn query<T: ToString, U: ToString>(self, param: T, value: U) -> Self
Set a query parameter.
sourcepub fn send_bytes<T: Into<Vec<u8>>>(self, data: T) -> Result<Response, HostError>
pub fn send_bytes<T: Into<Vec<u8>>>(self, data: T) -> Result<Response, HostError>
Send bytes with request.
sourcepub fn send_string<T: Into<String>>(self, data: T) -> Result<Response, HostError>
pub fn send_string<T: Into<String>>(self, data: T) -> Result<Response, HostError>
Send string with request.
sourcepub fn send_form(
self,
data: Vec<(String, String)>
) -> Result<Response, HostError>
pub fn send_form(
self,
data: Vec<(String, String)>
) -> Result<Response, HostError>
Send form with request.