Function request
pub fn request<T>(
req: &HttpRequest,
body: Option<T>,
) -> Result<HttpResponse, Error>where
T: ToMemory,
Expand description
Execute HttpRequest
, if body
is not None
then it will be sent as the
request body.
pub fn request<T>(
req: &HttpRequest,
body: Option<T>,
) -> Result<HttpResponse, Error>where
T: ToMemory,
Execute HttpRequest
, if body
is not None
then it will be sent as the
request body.