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 e9ccfbc commit 16125bdCopy full SHA for 16125bd
actix-multipart/src/payload.rs
@@ -122,7 +122,13 @@ impl PayloadBuffer {
122
}
123
124
125
- /// Reads bytes until new line delimiter.
+ /// Reads bytes until new line delimiter (`\n`, `0x0A`).
126
+ ///
127
+ /// Returns:
128
129
+ /// - `Ok(Some(chunk))` - `needle` is found, with chunk ending after needle
130
+ /// - `Err(Incomplete)` - `needle` is not found and we're at EOF
131
+ /// - `Ok(None)` - `needle` is not found otherwise
132
#[inline]
133
pub(crate) fn readline(&mut self) -> Result<Option<Bytes>, Error> {
134
self.read_until(b"\n")
0 commit comments