We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac5d645 commit 71b2f35Copy full SHA for 71b2f35
src/body.rs
@@ -451,7 +451,7 @@ impl Body {
451
})
452
}
453
454
- /// Get the length of the body in bytes.
+ /// Get the length of the body in bytes if defined. [None] if not.
455
///
456
/// # Examples
457
@@ -468,7 +468,7 @@ impl Body {
468
self.length
469
470
471
- /// Returns `true` if the body has a length of zero, and `false` otherwise.
+ /// Returns `true` if the body has a length of zero, and `false` otherwise if length is defined. [None] if not.
472
pub fn is_empty(&self) -> Option<bool> {
473
self.length.map(|length| length == 0)
474
0 commit comments