@@ -261,7 +261,7 @@ impl Builder {
261
261
262
262
/// Enables or disables HTTP/1 keep-alive.
263
263
///
264
- /// Default is true.
264
+ /// Default is ` true` .
265
265
pub fn keep_alive ( & mut self , val : bool ) -> & mut Self {
266
266
self . h1_keep_alive = val;
267
267
self
@@ -270,13 +270,15 @@ impl Builder {
270
270
/// Set whether HTTP/1 connections will write header names as title case at
271
271
/// the socket level.
272
272
///
273
- /// Default is false.
273
+ /// Default is ` false` .
274
274
pub fn title_case_headers ( & mut self , enabled : bool ) -> & mut Self {
275
275
self . h1_title_case_headers = enabled;
276
276
self
277
277
}
278
278
279
279
/// Set whether multiple spaces are allowed as delimiters in request lines.
280
+ ///
281
+ /// Default is `false`.
280
282
pub fn allow_multiple_spaces_in_request_line_delimiters ( & mut self , enabled : bool ) -> & mut Self {
281
283
self . h1_parser_config
282
284
. allow_multiple_spaces_in_request_line_delimiters ( enabled) ;
@@ -289,7 +291,7 @@ impl Builder {
289
291
/// name, or does not include a colon at all, the line will be silently ignored
290
292
/// and no error will be reported.
291
293
///
292
- /// Default is false.
294
+ /// Default is ` false` .
293
295
pub fn ignore_invalid_headers ( & mut self , enabled : bool ) -> & mut Builder {
294
296
self . h1_parser_config
295
297
. ignore_invalid_headers_in_requests ( enabled) ;
@@ -306,7 +308,7 @@ impl Builder {
306
308
/// interact with the original cases. The only effect this can have now is
307
309
/// to forward the cases in a proxy-like fashion.
308
310
///
309
- /// Default is false.
311
+ /// Default is ` false` .
310
312
pub fn preserve_header_case ( & mut self , enabled : bool ) -> & mut Self {
311
313
self . h1_preserve_header_case = enabled;
312
314
self
@@ -381,7 +383,7 @@ impl Builder {
381
383
///
382
384
/// Note that including the `date` header is recommended by RFC 7231.
383
385
///
384
- /// Default is true.
386
+ /// Default is ` true` .
385
387
pub fn auto_date_header ( & mut self , enabled : bool ) -> & mut Self {
386
388
self . date_header = enabled;
387
389
self
@@ -391,7 +393,7 @@ impl Builder {
391
393
///
392
394
/// Experimental, may have bugs.
393
395
///
394
- /// Default is false.
396
+ /// Default is ` false` .
395
397
pub fn pipeline_flush ( & mut self , enabled : bool ) -> & mut Self {
396
398
self . pipeline_flush = enabled;
397
399
self
0 commit comments