From 9bf60b65a06a553e39552ef6c3b8d2bc5bf42202 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Wed, 8 Jul 2015 10:31:31 -0700 Subject: [PATCH] docs(http): document consts CR, LR, and LINE_ENDING --- src/http/h1.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/http/h1.rs b/src/http/h1.rs index abfe8dd0..06bb8045 100644 --- a/src/http/h1.rs +++ b/src/http/h1.rs @@ -732,10 +732,11 @@ pub struct Incoming { pub headers: Headers } -pub const SP: u8 = b' '; +/// The `\r` byte. pub const CR: u8 = b'\r'; +/// The `\n` byte. pub const LF: u8 = b'\n'; -pub const STAR: u8 = b'*'; +/// The bytes `\r\n`. pub const LINE_ENDING: &'static str = "\r\n"; #[cfg(test)]