hickory_proto::h2::h2_server

Function message_from

Source
pub async fn message_from<R>(
    this_server_name: Option<Arc<str>>,
    this_server_endpoint: Arc<str>,
    request: Request<R>,
) -> Result<BytesMut, HttpsError>
where R: Stream<Item = Result<Bytes, Error>> + 'static + Send + Debug + Unpin,
Available on crate feature dns-over-https-rustls only.
Expand description

Given an HTTP request, return a future that will result in the next sequence of bytes.

To allow downstream clients to do something interesting with the lifetime of the bytes, this doesn’t perform a conversion to a Message, only collects all the bytes.