Struct apollo_client::conf::ApolloConfClientBuilder [−][src]
pub struct ApolloConfClientBuilder { /* fields omitted */ }
This is supported on crate feature
conf
only.Expand description
Builder for ApolloConfClient.
Implementations
Create a client request api via config service.
Example
use apollo_client::conf::ApolloConfClientBuilder; use url::Url; let _builder = ApolloConfClientBuilder::new_via_config_service( Url::parse("http://localhost:8080").unwrap() ).unwrap();
Customize inner http client.
Example
use apollo_client::conf::ApolloConfClientBuilder; use std::time::Duration; let mut client_builder: ApolloConfClientBuilder = todo!(); client_builder = client_builder.with_client_builder(|builder| { builder.timeout(Duration::from_secs(6)) });
Build the ApolloConfClient.
Auto Trait Implementations
impl !RefUnwindSafe for ApolloConfClientBuilder
impl Send for ApolloConfClientBuilder
impl Sync for ApolloConfClientBuilder
impl Unpin for ApolloConfClientBuilder
impl !UnwindSafe for ApolloConfClientBuilder