[−][src]Function solicit::http::client::write_preface
pub fn write_preface<W: Write>(stream: &mut W) -> Result<(), Error>
Writes the client preface to the given io::Write
instance.
According to the HTTP/2 spec, a client preface is first a specific sequence of octets, followed by a settings frame.
This helper method can be utilized by different transport layer implementations to prepare the
preface that needs to be written before initializing an HttpConnection
instance.
Returns
Any error raised by the underlying io::Write
instance is propagated.