pub(super) trait HttpFetcher {
// Required method
fn http_post_request(
&self,
url: &str,
payload: Value,
options: &FetchOptions,
) -> Result<String, NetworkError>;
}Expand description
Contains methods to abstract HTTP calls.
Required Methods§
Sourcefn http_post_request(
&self,
url: &str,
payload: Value,
options: &FetchOptions,
) -> Result<String, NetworkError>
fn http_post_request( &self, url: &str, payload: Value, options: &FetchOptions, ) -> Result<String, NetworkError>
Send a HTTP POST request with JSON as payload.