Function sp_io::offchain::http_request_start[][src]

pub fn http_request_start(
    method: &str,
    uri: &str,
    meta: &[u8]
) -> Result<HttpRequestId, ()>
Expand description

Initiates a http request given HTTP verb and the URL.

Meta is a future-reserved field containing additional, parity-scale-codec encoded parameters. Returns the id of newly started request.