Function sp_io::offchain::http_response_headers

source ยท
pub fn http_response_headers(
    request_id: HttpRequestId,
) -> Vec<(Vec<u8>, Vec<u8>)>
Expand description

Read all response headers.

Returns a vector of pairs (HeaderKey, HeaderValue). NOTE: response headers have to be read before response body.