#[repr(C)]
pub struct aws_http_proxy_options { pub connection_type: aws_http_proxy_connection_type, pub host: aws_byte_cursor, pub port: u16, pub tls_options: *const aws_tls_connection_options, pub proxy_strategy: *mut aws_http_proxy_strategy, pub auth_type: aws_http_proxy_authentication_type, pub auth_username: aws_byte_cursor, pub auth_password: aws_byte_cursor, }
Expand description

Options for http proxy server usage

Fields

connection_type: aws_http_proxy_connection_type

Type of proxy connection to make

host: aws_byte_cursor

Proxy host to connect to

port: u16

Port to make the proxy connection to

tls_options: *const aws_tls_connection_options

Optional. TLS configuration for the Local <-> Proxy connection Must be distinct from the the TLS options in the parent aws_http_connection_options struct

proxy_strategy: *mut aws_http_proxy_strategy

Optional Advanced option that allows the user to create a custom strategy that gives low-level control of certain logical flows within the proxy logic.

For tunneling proxies it allows custom retry and adaptive negotiation of CONNECT requests. For forwarding proxies it allows custom request transformations.

auth_type: aws_http_proxy_authentication_type

@Deprecated - What type of proxy authentication to use, if any. Replaced by instantiating a proxy_strategy

auth_username: aws_byte_cursor

@Deprecated - Optional user name to use for basic authentication Replaced by instantiating a proxy_strategy via aws_http_proxy_strategy_new_basic_auth()

auth_password: aws_byte_cursor

@Deprecated - Optional password to use for basic authentication Replaced by instantiating a proxy_strategy via aws_http_proxy_strategy_new_basic_auth()

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.