pub struct CollectionBuilder(/* private fields */);
Expand description
A builder of Collection
. See Collection::builder()
.
Implementations§
source§impl CollectionBuilder
impl CollectionBuilder
sourcepub fn insert(self, host: Host) -> Self
pub fn insert(self, host: Host) -> Self
Adds host
to the builder.
This will match the host
header and SNI hostname for [Host.name
].
If it is the first call to this function, Self::set_pre_host_limiter
is called
with Host::limiter
.
sourcepub fn default(self, host: Host) -> Self
pub fn default(self, host: Host) -> Self
Adds a default host
which is the fallback for all requests with a requested host
which does not match any host added using Self::insert
.
This is not needed when debugging, as the first
Host
to be inserted is used for requests tolocalho