Skip to content

Commit

Permalink
drop enable_webtransport param
Browse files Browse the repository at this point in the history
  • Loading branch information
eagr committed Dec 6, 2022
1 parent 468040b commit fe091e5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions h3/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
/// HTTP/3 connection parameters builder
pub struct Params {
pub(crate) enable_webtransport: bool,
pub(crate) grease: bool,
pub(crate) max_field_section_size: u64,
}

impl Default for Params {
fn default() -> Self {
Self {
enable_webtransport: false,
grease: true,
max_field_section_size: Self::DEFAULT_MAX_FIELD_SECTION_SIZE,
}
Expand All @@ -21,12 +19,6 @@ impl Params {
/// Default max header size
pub const DEFAULT_MAX_FIELD_SECTION_SIZE: u64 = (1 << 62) - 1;

/// Set whether WebTransport is supported
pub fn enable_webtransport(mut self, val: bool) -> Self {
self.enable_webtransport = val;
self
}

/// Set wether to send GREASE
pub fn grease(mut self, val: bool) -> Self {
self.grease = val;
Expand Down

0 comments on commit fe091e5

Please sign in to comment.