Skip to content

Commit

Permalink
Update obj.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLocal committed Aug 6, 2024
1 parent bda9a02 commit 089f5bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/obj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ impl Parser {
unsafe { const_ptr_to_string!(mk_parser_get_header(self.0, key.as_ptr())) }
}

pub fn protocol(&self) -> String {
unsafe { const_ptr_to_string!(mk_parser_get_tail(self.0)) }
}

pub fn body(&self) -> String {
unsafe { const_ptr_to_string!(mk_parser_get_content(self.0, null_mut() as *mut _)) }
}
Expand Down

0 comments on commit 089f5bc

Please sign in to comment.