1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#[macro_use]
pub mod header_macros;
pub mod headers_ext;
pub mod request;
pub mod response;
pub mod sip_message;
pub use headers_ext::HeadersExt;
pub use request::Request;
pub use response::Response;
pub use sip_message::SipMessage;
/// Simple trait to signify that the underlying type has headers so that the
/// [HeadersExt](crate::message::HeadersExt) trait
/// can automatically implement all the header methods by default.
pub trait HasHeaders {
fn headers(&self) -> &crate::headers::Headers;
fn headers_mut(&mut self) -> &mut crate::headers::Headers;
}