diff options
Diffstat (limited to 'src/api/http_util.rs')
-rw-r--r-- | src/api/http_util.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/http_util.rs b/src/api/http_util.rs index 029b7020..8a8cf9d8 100644 --- a/src/api/http_util.rs +++ b/src/api/http_util.rs @@ -82,3 +82,7 @@ impl From<Vec<u8>> for BytesBody { Self::new(Bytes::from(x)) } } + +pub fn empty_body() -> BodyType { + Box::new(BytesBody::from(vec![])) +} |