#[allow(unused_variables)]
pub trait HttpHandler {
fn content_length(&mut self) -> Option<usize> {
None
}
fn on_body_finished(&mut self) -> bool {
true
}
fn on_chunk_begin(&mut self) -> bool {
true
}
fn on_chunk_data(&mut self, data: &[u8]) -> bool {
true
}
fn on_chunk_extension_finished(&mut self) -> bool {
true
}
fn on_chunk_extension_name(&mut self, name: &[u8]) -> bool {
true
}
fn on_chunk_extension_value(&mut self, value: &[u8]) -> bool {
true
}
fn on_chunk_extensions_finished(&mut self) -> bool {
true
}
fn on_chunk_length(&mut self, size: usize) -> bool {
true
}
fn on_header_name(&mut self, name: &[u8]) -> bool {
true
}
fn on_header_value(&mut self, value: &[u8]) -> bool {
true
}
fn on_headers_finished(&mut self) -> bool {
true
}
fn on_initial_finished(&mut self) -> bool {
true
}
fn on_method(&mut self, method: &[u8]) -> bool {
true
}
fn on_multipart_begin(&mut self) -> bool {
true
}
fn on_multipart_data(&mut self, data: &[u8]) -> bool {
true
}
fn on_status(&mut self, status: &[u8]) -> bool {
true
}
fn on_status_code(&mut self, code: u16) -> bool {
true
}
fn on_url(&mut self, url: &[u8]) -> bool {
true
}
fn on_url_encoded_begin(&mut self) -> bool {
true
}
fn on_url_encoded_name(&mut self, name: &[u8]) -> bool {
true
}
fn on_url_encoded_value(&mut self, value: &[u8]) -> bool {
true
}
fn on_version(&mut self, major: u16, minor: u16) -> bool {
true
}
}