1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! HTTP/2 client construction and shared types. Doc §3.5, §5.8.
//!
//! `RemoteWorkerActor`s share one `reqwest::Client` per
//! `RemoteSessionActor` so that connection pooling, HTTP/2 multiplexing
//! and TLS session caching are reused across the worker pool.
use Duration;
use Timeouts;
pub type HttpClient = Client;
/// Build a `reqwest::Client` configured for streaming SSE workloads.
/// Shadow of `reqwest::ClientBuilder::http2_prior_knowledge` that does
/// **not** force prior-knowledge — keeps HTTP/2-via-ALPN as the default
/// for TLS, while still allowing HTTP/1.1 fallback for plaintext mock
/// endpoints (`wiremock`'s server is HTTP/1.1). A no-op here is the
/// right behaviour; the helper exists so the call-site reads as intent.