blob: 289b91524f2298199bc46b2e7e7ccea548057806 (
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
25
|
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 for HTTP_MESSAGE {
type Iterm = HTTP_MESSAGE;
fn decode(input: &[u8]) -> IResult<&[u8], HTTP_MESSAGE> {
let message = HTTP_MESSAGE::new();
// TODO
Ok((input, message))
}
}
|