#[repr(C)]pub struct aws_http_request_handler_options {
pub self_size: usize,
pub server_connection: *mut aws_http_connection,
pub user_data: *mut c_void,
pub on_request_headers: aws_http_on_incoming_headers_fn,
pub on_request_header_block_done: aws_http_on_incoming_header_block_done_fn,
pub on_request_body: aws_http_on_incoming_body_fn,
pub on_request_done: aws_http_on_incoming_request_done_fn,
pub on_complete: aws_http_on_stream_complete_fn,
pub on_destroy: aws_http_on_stream_destroy_fn,
}Fields§
§self_size: usize§server_connection: *mut aws_http_connectionRequired.
user_data: *mut c_voiduser_data passed to callbacks. Optional.
on_request_headers: aws_http_on_incoming_headers_fnInvoked repeatedly times as headers are received.
Optional.
See aws_http_on_incoming_headers_fn.
on_request_header_block_done: aws_http_on_incoming_header_block_done_fnInvoked when the request header block has been completely read.
Optional.
See aws_http_on_incoming_header_block_done_fn.
on_request_body: aws_http_on_incoming_body_fnInvoked as body data is received.
Optional.
See aws_http_on_incoming_body_fn.
on_request_done: aws_http_on_incoming_request_done_fnInvoked when request has been completely read.
Optional.
See aws_http_on_incoming_request_done_fn.
on_complete: aws_http_on_stream_complete_fnInvoked when request/response stream is complete, whether successful or unsuccessful
Optional.
See aws_http_on_stream_complete_fn.
on_destroy: aws_http_on_stream_destroy_fnTrait Implementations§
Source§impl Clone for aws_http_request_handler_options
impl Clone for aws_http_request_handler_options
Source§fn clone(&self) -> aws_http_request_handler_options
fn clone(&self) -> aws_http_request_handler_options
Returns a duplicate 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 moreimpl Copy for aws_http_request_handler_options
Auto Trait Implementations§
impl Freeze for aws_http_request_handler_options
impl RefUnwindSafe for aws_http_request_handler_options
impl !Send for aws_http_request_handler_options
impl !Sync for aws_http_request_handler_options
impl Unpin for aws_http_request_handler_options
impl UnwindSafe for aws_http_request_handler_options
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