Skip to content

Commit

Permalink
feat: implement Clone for server auto::Builder (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoeinstein authored Dec 8, 2023
1 parent f0117db commit 475dd1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/conn/auto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>
const H2_PREFACE: &[u8] = b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";

/// Http1 or Http2 connection builder.
#[derive(Clone, Debug)]
pub struct Builder<E> {
http1: http1::Builder,
http2: http2::Builder<E>,
Expand Down

0 comments on commit 475dd1a

Please sign in to comment.