cef_post_data_t

Type Alias cef_post_data_t 

Source
pub type cef_post_data_t = _cef_post_data_t;
Expand description

Structure used to represent post data for a web request. The functions of this structure may be called on any thread.

NOTE: This struct is allocated DLL-side.

Aliased Type§

#[repr(C)]
pub struct cef_post_data_t { pub base: _cef_base_ref_counted_t, pub is_read_only: Option<unsafe extern "C" fn(*mut _cef_post_data_t) -> i32>, pub has_excluded_elements: Option<unsafe extern "C" fn(*mut _cef_post_data_t) -> i32>, pub get_element_count: Option<unsafe extern "C" fn(*mut _cef_post_data_t) -> usize>, pub get_elements: Option<unsafe extern "C" fn(*mut _cef_post_data_t, *mut usize, *mut *mut _cef_post_data_element_t)>, pub remove_element: Option<unsafe extern "C" fn(*mut _cef_post_data_t, *mut _cef_post_data_element_t) -> i32>, pub add_element: Option<unsafe extern "C" fn(*mut _cef_post_data_t, *mut _cef_post_data_element_t) -> i32>, pub remove_elements: Option<unsafe extern "C" fn(*mut _cef_post_data_t)>, }

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§is_read_only: Option<unsafe extern "C" fn(*mut _cef_post_data_t) -> i32>

Returns true (1) if this object is read-only.

§has_excluded_elements: Option<unsafe extern "C" fn(*mut _cef_post_data_t) -> i32>

Returns true (1) if the underlying POST data includes elements that are not represented by this cef_post_data_t object (for example, multi-part file upload data). Modifying cef_post_data_t objects with excluded elements may result in the request failing.

§get_element_count: Option<unsafe extern "C" fn(*mut _cef_post_data_t) -> usize>

Returns the number of existing post data elements.

§get_elements: Option<unsafe extern "C" fn(*mut _cef_post_data_t, *mut usize, *mut *mut _cef_post_data_element_t)>

Retrieve the post data elements.

§remove_element: Option<unsafe extern "C" fn(*mut _cef_post_data_t, *mut _cef_post_data_element_t) -> i32>

Remove the specified post data element. Returns true (1) if the removal succeeds.

§add_element: Option<unsafe extern "C" fn(*mut _cef_post_data_t, *mut _cef_post_data_element_t) -> i32>

Add the specified post data element. Returns true (1) if the add succeeds.

§remove_elements: Option<unsafe extern "C" fn(*mut _cef_post_data_t)>

Remove all existing post data elements.