Function iroh_blobs::provider::read_request
source · pub async fn read_request(reader: RecvStream) -> Result<Request>
Expand description
Read the request from the getter.
Will fail if there is an error while reading, if the reader contains more data than the Request, or if no valid request is sent.
When successful, the buffer is empty after this function call.