pub enum HttpProtocol {
Http1,
}Expand description
An enabled wire engine selected before exchange admission.
Variants§
Http1
HTTP/1 framing over a reliable plaintext byte stream.
Implementations§
Source§impl HttpProtocol
impl HttpProtocol
Sourcepub fn client<R: ReadableStream, W: WritableStream>(
self,
reader: R,
writer: W,
options: Options,
) -> Result<(ResponseReader<R>, RequestWriter<W>), Error>
pub fn client<R: ReadableStream, W: WritableStream>( self, reader: R, writer: W, options: Options, ) -> Result<(ResponseReader<R>, RequestWriter<W>), Error>
Construct matching client codec directions over an established stream.
Sourcepub fn server<R: ReadableStream, W: WritableStream>(
self,
reader: R,
writer: W,
options: Options,
) -> Result<(RequestReader<R>, ResponseWriter<W>), Error>
pub fn server<R: ReadableStream, W: WritableStream>( self, reader: R, writer: W, options: Options, ) -> Result<(RequestReader<R>, ResponseWriter<W>), Error>
Construct matching server codec directions over an established stream.
Trait Implementations§
Source§impl Clone for HttpProtocol
impl Clone for HttpProtocol
impl Copy for HttpProtocol
Source§impl Debug for HttpProtocol
impl Debug for HttpProtocol
impl Eq for HttpProtocol
Source§impl PartialEq for HttpProtocol
impl PartialEq for HttpProtocol
impl StructuralPartialEq for HttpProtocol
Auto Trait Implementations§
impl Freeze for HttpProtocol
impl RefUnwindSafe for HttpProtocol
impl Send for HttpProtocol
impl Sync for HttpProtocol
impl Unpin for HttpProtocol
impl UnsafeUnpin for HttpProtocol
impl UnwindSafe for HttpProtocol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more