referrerpolicy=no-referrer-when-downgrade

Function http_request_start

Source
pub fn http_request_start(
    method: <PassFatPointerAndRead<&str> as RIType>::Inner,
    uri: <PassFatPointerAndRead<&str> as RIType>::Inner,
    meta: <PassFatPointerAndRead<&[u8]> as RIType>::Inner,
) -> <AllocateAndReturnByCodec<Result<HttpRequestId, ()>> as RIType>::Inner
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.