#[repr(C)]pub struct aws_http_make_request_options {
pub self_size: usize,
pub request: *mut aws_http_message,
pub user_data: *mut c_void,
pub on_response_headers: aws_http_on_incoming_headers_fn,
pub on_response_header_block_done: aws_http_on_incoming_header_block_done_fn,
pub on_response_body: aws_http_on_incoming_body_fn,
pub on_complete: aws_http_on_stream_complete_fn,
pub on_destroy: aws_http_on_stream_destroy_fn,
pub http2_use_manual_data_writes: bool,
}
Expand description
Options for creating a stream which sends a request from the client and receives a response from the server.
Fields
self_size: usize
The sizeof() this struct, used for versioning. Required.
request: *mut aws_http_message
Definition for outgoing request. Required. This object must stay alive at least until on_complete is called.
user_data: *mut c_void
on_response_headers: aws_http_on_incoming_headers_fn
Invoked repeatedly times as headers are received.
Optional.
See aws_http_on_incoming_headers_fn
.
on_response_header_block_done: aws_http_on_incoming_header_block_done_fn
Invoked when response header block has been completely read.
Optional.
See aws_http_on_incoming_header_block_done_fn
.
on_response_body: aws_http_on_incoming_body_fn
Invoked repeatedly as body data is received.
Optional.
See aws_http_on_incoming_body_fn
.
on_complete: aws_http_on_stream_complete_fn
Invoked 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_fn
http2_use_manual_data_writes: bool
When using HTTP/2, request body data will be provided over time. The stream will only be polled for writing
when data has been supplied via aws_http2_stream_write_data
Trait Implementations
sourceimpl Clone for aws_http_make_request_options
impl Clone for aws_http_make_request_options
sourcefn clone(&self) -> aws_http_make_request_options
fn clone(&self) -> aws_http_make_request_options
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more