Skip to main content

read_response

Function read_response 

Source
async fn read_response<C: JsonRpcCodec>(
    stream: RequestStream<BidiStream<Bytes>, Bytes>,
    codec: &C,
) -> Result<(RequestStream<SendStream<Bytes>, Bytes>, H3Reader<C>)>
Expand description

Wait for the response headers and split the stream into the send half and a reader for the reply.