Skip to content

Commit 61622db

Browse files
fix: add documentation for NativeHttp init method
1 parent c1366d0 commit 61622db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cli/runtime/http.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ impl Default for NativeHttp {
8585
}
8686

8787
impl NativeHttp {
88+
/// Initialize the HTTP client with the given upstream configuration and
89+
/// telemetry settings.
8890
pub fn init(upstream: &Upstream, telemetry: &Telemetry) -> Self {
8991
let mut builder = Client::builder()
9092
.tcp_keepalive(Some(Duration::from_secs(upstream.tcp_keep_alive)))

0 commit comments

Comments
 (0)