#[repr(C)]pub struct OrthancPluginHttpRequest {
pub method: OrthancPluginHttpMethod,
pub groupsCount: u32,
pub groups: *const *const c_char,
pub getCount: u32,
pub getKeys: *const *const c_char,
pub getValues: *const *const c_char,
pub body: *const c_void,
pub bodySize: u32,
pub headersCount: u32,
pub headersKeys: *const *const c_char,
pub headersValues: *const *const c_char,
}
Expand description
@brief The parameters of a REST request. @ingroup Callbacks
Fields§
§method: OrthancPluginHttpMethod
@brief The HTTP method.
groupsCount: u32
@brief The number of groups of the regular expression.
groups: *const *const c_char
@brief The matched values for the groups of the regular expression.
getCount: u32
@brief For a GET request, the number of GET parameters.
getKeys: *const *const c_char
@brief For a GET request, the keys of the GET parameters.
getValues: *const *const c_char
@brief For a GET request, the values of the GET parameters.
body: *const c_void
@brief For a PUT or POST request, the content of the body.
bodySize: u32
@brief For a PUT or POST request, the number of bytes of the body.
headersCount: u32
@brief The number of HTTP headers.
headersKeys: *const *const c_char
@brief The keys of the HTTP headers (always converted to low-case).
headersValues: *const *const c_char
@brief The values of the HTTP headers.
Trait Implementations§
Source§impl Clone for OrthancPluginHttpRequest
impl Clone for OrthancPluginHttpRequest
Source§fn clone(&self) -> OrthancPluginHttpRequest
fn clone(&self) -> OrthancPluginHttpRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OrthancPluginHttpRequest
impl Debug for OrthancPluginHttpRequest
impl Copy for OrthancPluginHttpRequest
Auto Trait Implementations§
impl Freeze for OrthancPluginHttpRequest
impl RefUnwindSafe for OrthancPluginHttpRequest
impl !Send for OrthancPluginHttpRequest
impl !Sync for OrthancPluginHttpRequest
impl Unpin for OrthancPluginHttpRequest
impl UnwindSafe for OrthancPluginHttpRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more