Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions linkerd/http/box/src/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ impl BoxBody {
inner: Box::pin(Inner(inner)),
}
}

/// Returns an empty [`BoxBody`].
///
/// This is an alias for [`BoxBody::default()`].
pub fn empty() -> Self {
Self::default()
}
}

impl Body for BoxBody {
Expand Down
Loading