diff options
Diffstat (limited to 'src/protocol/http.rs')
| -rw-r--r-- | src/protocol/http.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/protocol/http.rs b/src/protocol/http.rs new file mode 100644 index 0000000..de6476f --- /dev/null +++ b/src/protocol/http.rs @@ -0,0 +1,20 @@ +use nom::IResult; + +#[allow(non_camel_case_types)] +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct HTTP_MESSAGE { + // TODO +} + +impl HTTP_MESSAGE { + pub fn new() -> HTTP_MESSAGE { + HTTP_MESSAGE { + // TODO + } + } + pub fn decode(input: &[u8]) -> IResult<&[u8], HTTP_MESSAGE> { + let message = HTTP_MESSAGE::new(); + // TODO + Ok((input, message)) + } +} |
