pub struct ConsulIngressServiceBuilder { /* private fields */ }
Expand description
Builder for ConsulIngressService
.
Implementations§
Source§impl ConsulIngressServiceBuilder
impl ConsulIngressServiceBuilder
Sourcepub fn name(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
Name of the service exposed through this listener.
Sourcepub fn hosts(&mut self, value: Vec<String>) -> &mut Self
pub fn hosts(&mut self, value: Vec<String>) -> &mut Self
Hosts specifies one or more hosts that the listening services can receive requests on.
Sourcepub fn tls(&mut self, value: Option<ConsulGatewayTlsConfig>) -> &mut Self
pub fn tls(&mut self, value: Option<ConsulGatewayTlsConfig>) -> &mut Self
TLS specifies a TLS configuration override for a specific service. If unset this will fallback to the ConsulIngressConfigEntry’s own TLS field.
Sourcepub fn request_headers(
&mut self,
value: Option<ConsulHttpHeaderModifiers>,
) -> &mut Self
pub fn request_headers( &mut self, value: Option<ConsulHttpHeaderModifiers>, ) -> &mut Self
RequestHeaders specifies a set of HTTP-specific header modification rules applied to requests routed through the gateway
Sourcepub fn response_headers(
&mut self,
value: Option<ConsulHttpHeaderModifiers>,
) -> &mut Self
pub fn response_headers( &mut self, value: Option<ConsulHttpHeaderModifiers>, ) -> &mut Self
ResponseHeader specifies a set of HTTP-specific header modification rules applied to responses routed through the gateway
Sourcepub fn max_connections(&mut self, value: Option<u32>) -> &mut Self
pub fn max_connections(&mut self, value: Option<u32>) -> &mut Self
MaxConnections specifies the maximum number of HTTP/1.1 connections a service instance is allowed to establish against the upstream
Sourcepub fn max_pending_requests(&mut self, value: Option<u32>) -> &mut Self
pub fn max_pending_requests(&mut self, value: Option<u32>) -> &mut Self
MaxPendingRequests specifies the maximum number of requests that are allowed to queue while waiting to establish a connection
Sourcepub fn max_concurrent_requests(&mut self, value: Option<u32>) -> &mut Self
pub fn max_concurrent_requests(&mut self, value: Option<u32>) -> &mut Self
MaxConcurrentRequests specifies the maximum number of concurrent HTTP/2 traffic requests that are allowed at a single point in time
Sourcepub fn build(
&self,
) -> Result<ConsulIngressService, ConsulIngressServiceBuilderError>
pub fn build( &self, ) -> Result<ConsulIngressService, ConsulIngressServiceBuilderError>
Trait Implementations§
Source§impl Clone for ConsulIngressServiceBuilder
impl Clone for ConsulIngressServiceBuilder
Source§fn clone(&self) -> ConsulIngressServiceBuilder
fn clone(&self) -> ConsulIngressServiceBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more