blob: b7abcccbbf9a5c791c3d862d96dd039ab63f4b80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
use crate::protocol::codec::Decode;
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
}
}
}
impl Decode<HTTP_MESSAGE> for HTTP_MESSAGE {
fn decode(input: &[u8]) -> IResult<&[u8], HTTP_MESSAGE> {
let message = HTTP_MESSAGE::new();
// TODO
Ok((input, message))
}
}
|