#[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_voidon_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_fnhttp2_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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.