@@ -338,7 +338,7 @@ impl Builder {
338
338
/// Default is false.
339
339
///
340
340
/// [RFC 7230 Section 3.2.4.]: https://tools.ietf.org/html/rfc7230#section-3.2.4
341
- pub fn http1_allow_spaces_after_header_name_in_responses (
341
+ pub fn allow_spaces_after_header_name_in_responses (
342
342
& mut self ,
343
343
enabled : bool ,
344
344
) -> & mut Builder {
@@ -381,7 +381,7 @@ impl Builder {
381
381
/// Default is false.
382
382
///
383
383
/// [RFC 7230 Section 3.2.4.]: https://tools.ietf.org/html/rfc7230#section-3.2.4
384
- pub fn http1_allow_obsolete_multiline_headers_in_responses (
384
+ pub fn allow_obsolete_multiline_headers_in_responses (
385
385
& mut self ,
386
386
enabled : bool ,
387
387
) -> & mut Builder {
@@ -399,7 +399,7 @@ impl Builder {
399
399
/// Note that this setting does not affect HTTP/2.
400
400
///
401
401
/// Default is false.
402
- pub fn http1_ignore_invalid_headers_in_responses ( & mut self , enabled : bool ) -> & mut Builder {
402
+ pub fn ignore_invalid_headers_in_responses ( & mut self , enabled : bool ) -> & mut Builder {
403
403
self . h1_parser_config
404
404
. ignore_invalid_headers_in_responses ( enabled) ;
405
405
self
@@ -417,7 +417,7 @@ impl Builder {
417
417
///
418
418
/// Default is `auto`. In this mode hyper will try to guess which
419
419
/// mode to use
420
- pub fn http1_writev ( & mut self , enabled : bool ) -> & mut Builder {
420
+ pub fn writev ( & mut self , enabled : bool ) -> & mut Builder {
421
421
self . h1_writev = Some ( enabled) ;
422
422
self
423
423
}
@@ -428,7 +428,7 @@ impl Builder {
428
428
/// Note that this setting does not affect HTTP/2.
429
429
///
430
430
/// Default is false.
431
- pub fn http1_title_case_headers ( & mut self , enabled : bool ) -> & mut Builder {
431
+ pub fn title_case_headers ( & mut self , enabled : bool ) -> & mut Builder {
432
432
self . h1_title_case_headers = enabled;
433
433
self
434
434
}
@@ -446,7 +446,7 @@ impl Builder {
446
446
/// Note that this setting does not affect HTTP/2.
447
447
///
448
448
/// Default is false.
449
- pub fn http1_preserve_header_case ( & mut self , enabled : bool ) -> & mut Builder {
449
+ pub fn preserve_header_case ( & mut self , enabled : bool ) -> & mut Builder {
450
450
self . h1_preserve_header_case = enabled;
451
451
self
452
452
}
@@ -461,17 +461,17 @@ impl Builder {
461
461
///
462
462
/// Default is false.
463
463
#[ cfg( feature = "ffi" ) ]
464
- pub fn http1_preserve_header_order ( & mut self , enabled : bool ) -> & mut Builder {
464
+ pub fn preserve_header_order ( & mut self , enabled : bool ) -> & mut Builder {
465
465
self . h1_preserve_header_order = enabled;
466
466
self
467
467
}
468
468
469
469
/// Sets the exact size of the read buffer to *always* use.
470
470
///
471
- /// Note that setting this option unsets the `http1_max_buf_size ` option.
471
+ /// Note that setting this option unsets the `max_buf_size ` option.
472
472
///
473
473
/// Default is an adaptive read buffer.
474
- pub fn http1_read_buf_exact_size ( & mut self , sz : Option < usize > ) -> & mut Builder {
474
+ pub fn read_buf_exact_size ( & mut self , sz : Option < usize > ) -> & mut Builder {
475
475
self . h1_read_buf_exact_size = sz;
476
476
self . h1_max_buf_size = None ;
477
477
self
@@ -481,12 +481,12 @@ impl Builder {
481
481
///
482
482
/// Default is ~400kb.
483
483
///
484
- /// Note that setting this option unsets the `http1_read_exact_buf_size ` option.
484
+ /// Note that setting this option unsets the `read_exact_buf_size ` option.
485
485
///
486
486
/// # Panics
487
487
///
488
488
/// The minimum value allowed is 8192. This method panics if the passed `max` is less than the minimum.
489
- pub fn http1_max_buf_size ( & mut self , max : usize ) -> & mut Self {
489
+ pub fn max_buf_size ( & mut self , max : usize ) -> & mut Self {
490
490
assert ! (
491
491
max >= proto:: h1:: MINIMUM_MAX_BUFFER_SIZE ,
492
492
"the max_buf_size cannot be smaller than the minimum that h1 specifies."
0 commit comments