Function sp_io::offchain::http_request_write_body
source · pub fn http_request_write_body(
request_id: HttpRequestId,
chunk: &[u8],
deadline: Option<Timestamp>,
) -> Result<(), HttpError>
Expand description
Write a chunk of request body.
Writing an empty chunks finalizes the request.
Passing None
as deadline blocks forever.
Returns an error in case deadline is reached or the chunk couldn’t be written.