Skip to main content

http_call

Function http_call 

Source
pub fn http_call(url: &str, method: &str, body: &[u8]) -> Result<OracleResponse>
Expand description

Makes an HTTP request via the oracle.

Returns OracleResponse with status and body.