MCPcopy Create free account
hub / github.com/HFQR/xitca-web / config

Method config

http/src/builder.rs:143–152  ·  view source on GitHub ↗

replace service middleware's configuration.

(
        self,
        config: HttpServiceConfig<HEADER_LIMIT_2, READ_BUF_LIMIT_2, WRITE_BUF_LIMIT_2>,
    )

Source from the content-addressed store, hash-verified

141{
142 /// replace service middleware's configuration.
143 pub fn config<const HEADER_LIMIT_2: usize, const READ_BUF_LIMIT_2: usize, const WRITE_BUF_LIMIT_2: usize>(
144 self,
145 config: HttpServiceConfig<HEADER_LIMIT_2, READ_BUF_LIMIT_2, WRITE_BUF_LIMIT_2>,
146 ) -> HttpServiceBuilder<V, Io, St, FA, HEADER_LIMIT_2, READ_BUF_LIMIT_2, WRITE_BUF_LIMIT_2> {
147 HttpServiceBuilder {
148 tls_factory: self.tls_factory,
149 config,
150 _body: PhantomData,
151 }
152 }
153
154 /// replace tls service. tls service is used for Http/1 and Http/2 protocols.
155 pub fn with_tls<TlsF>(

Callers 2

test_h2_serverFunction · 0.45
h2specFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_h2_serverFunction · 0.36
h2specFunction · 0.36