Function sp_io::offchain::http_response_headers
source · [−]pub fn http_response_headers(
request_id: HttpRequestId
) -> Vec<(Vec<u8>, Vec<u8>)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
Expand description
Read all response headers.
Returns a vector of pairs (HeaderKey, HeaderValue)
.
NOTE response headers have to be read before response body.