Struct esp_idf_hal::sys::http_parser
source · #[repr(C)]pub struct http_parser {
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub nread: u32,
pub content_length: u64,
pub http_major: u16,
pub http_minor: u16,
pub _bitfield_align_2: [u16; 0],
pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4]>,
pub data: *mut c_void,
}
Fields§
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>
§nread: u32
§content_length: u64
§http_major: u16
READ-ONLY
http_minor: u16
§_bitfield_align_2: [u16; 0]
§_bitfield_2: __BindgenBitfieldUnit<[u8; 4]>
§data: *mut c_void
PUBLIC
Implementations§
source§impl http_parser
impl http_parser
pub fn type_(&self) -> u32
pub fn set_type(&mut self, val: u32)
pub fn flags(&self) -> u32
pub fn set_flags(&mut self, val: u32)
pub fn state(&self) -> u32
pub fn set_state(&mut self, val: u32)
pub fn header_state(&self) -> u32
pub fn set_header_state(&mut self, val: u32)
pub fn index(&self) -> u32
pub fn set_index(&mut self, val: u32)
pub fn lenient_http_headers(&self) -> u32
pub fn set_lenient_http_headers(&mut self, val: u32)
pub fn new_bitfield_1( type_: u32, flags: u32, state: u32, header_state: u32, index: u32, lenient_http_headers: u32, ) -> __BindgenBitfieldUnit<[u8; 4]>
pub fn status_code(&self) -> u32
pub fn set_status_code(&mut self, val: u32)
pub fn method(&self) -> u32
pub fn set_method(&mut self, val: u32)
pub fn http_errno(&self) -> u32
pub fn set_http_errno(&mut self, val: u32)
pub fn upgrade(&self) -> u32
pub fn set_upgrade(&mut self, val: u32)
pub fn new_bitfield_2( status_code: u32, method: u32, http_errno: u32, upgrade: u32, ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
source§impl Clone for http_parser
impl Clone for http_parser
source§fn clone(&self) -> http_parser
fn clone(&self) -> http_parser
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for http_parser
impl Debug for http_parser
source§impl Default for http_parser
impl Default for http_parser
source§fn default() -> http_parser
fn default() -> http_parser
Returns the “default value” for a type. Read more
impl Copy for http_parser
Auto Trait Implementations§
impl Freeze for http_parser
impl RefUnwindSafe for http_parser
impl !Send for http_parser
impl !Sync for http_parser
impl Unpin for http_parser
impl UnwindSafe for http_parser
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)