pub struct ClientBuilder { /* private fields */ }Expand description
Builder for an asynchronous DMVS client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn identity(self, identity: TlsIdentity) -> Self
pub fn identity(self, identity: TlsIdentity) -> Self
Sets the client certificate chain and private key used by every clone.
Sourcepub fn subject_id(self, subject_id: SubjectId) -> Self
pub fn subject_id(self, subject_id: SubjectId) -> Self
Sets the authenticated/requester subject used by R19 and R49.
The identifier is required at build time and is not inferred from the certificate. It remains redacted from ordinary debugging output.
Sourcepub fn connect_timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
Sets the connection timeout; the default is 10 seconds.
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets the total per-request timeout; the default is 60 seconds.
Sourcepub fn max_request_bytes(self, limit: usize) -> Self
pub fn max_request_bytes(self, limit: usize) -> Self
Sets the maximum encoded HTTP request size, including MIME framing; the default is 64 MiB.
Sourcepub fn max_response_bytes(self, limit: usize) -> Self
pub fn max_response_bytes(self, limit: usize) -> Self
Sets the maximum buffered HTTP response size; the default is 256 MiB.
Sourcepub fn max_xml_nodes(self, limit: u32) -> Self
pub fn max_xml_nodes(self, limit: u32) -> Self
Sets the maximum XML node count; the default is 2,000,000.
Sourcepub fn max_xml_depth(self, limit: u32) -> Self
pub fn max_xml_depth(self, limit: u32) -> Self
Sets the maximum XML nesting depth; the default is 256.
Sourcepub fn max_mime_parts(self, limit: usize) -> Self
pub fn max_mime_parts(self, limit: usize) -> Self
Sets the maximum MIME parts in one MTOM response; the default is 32.
Sourcepub fn max_decoded_file_bytes(self, limit: usize) -> Self
pub fn max_decoded_file_bytes(self, limit: usize) -> Self
Sets the maximum decoded bytes in one file; the default is 256 MiB.
Sourcepub fn max_total_decoded_file_bytes(self, limit: usize) -> Self
pub fn max_total_decoded_file_bytes(self, limit: usize) -> Self
Sets the total decoded file bytes per response; the default is 256 MiB.
Sourcepub fn max_concurrency(self, limit: usize) -> Self
pub fn max_concurrency(self, limit: usize) -> Self
Sets the maximum number of in-flight requests per client; the default is 1.