summaryrefslogtreecommitdiff
path: root/src/protocol/http.rs
blob: de6476fc61f4e0af12eed445a98e8dd3dedfa85a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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))
    }
}