pull/315/head
ssrlive 2 years ago
parent c7735e902e
commit 125d0e9d6f
  1. 2
      src/handshake/machine.rs
  2. 2
      src/handshake/mod.rs
  3. 3
      src/handshake/server.rs

@ -1,3 +1,5 @@
//! handshake machine.
use bytes::Buf; use bytes::Buf;
use log::*; use log::*;
use std::io::{Cursor, Read, Write}; use std::io::{Cursor, Read, Write};

@ -3,8 +3,6 @@
pub mod client; pub mod client;
pub mod headers; pub mod headers;
pub mod server; pub mod server;
#[allow(missing_docs)]
pub mod machine; pub mod machine;
use std::{ use std::{

@ -93,8 +93,7 @@ pub fn create_response_with_body<T>(
Ok(create_parts(request)?.body(generate_body())?) Ok(create_parts(request)?.body(generate_body())?)
} }
// Assumes that this is a valid response /// Write response to the stream `w`.
#[allow(missing_docs)]
pub fn write_response<T>(mut w: impl io::Write, response: &HttpResponse<T>) -> Result<()> { pub fn write_response<T>(mut w: impl io::Write, response: &HttpResponse<T>) -> Result<()> {
writeln!( writeln!(
w, w,

Loading…
Cancel
Save