Skip to content

Commit

Permalink
Expose setting to disable grease (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Jul 14, 2023
1 parent a38b194 commit dccb3cd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions h3/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,15 @@ impl Builder {
self
}

/// Just like in HTTP/2, HTTP/3 also uses the concept of "grease"
/// to prevent potential interoperability issues in the future.
/// In HTTP/3, the concept of grease is used to ensure that the protocol can evolve
/// and accommodate future changes without breaking existing implementations.
pub fn send_grease(&mut self, enabled: bool) -> &mut Self {
self.config.send_grease = enabled;
self
}

/// Create a new HTTP/3 client from a `quic` connection
pub async fn build<C, O, B>(
&mut self,
Expand Down

0 comments on commit dccb3cd

Please sign in to comment.