codex_login/outbound_proxy.rs
1use codex_http_client::HttpClientFactory;
2
3/// Auth-layer adapter around client-owned proxy policy.
4///
5/// `AuthConfig` carries this value while endpoint resolution and platform details remain in the
6/// client layer.
7#[derive(Debug, Clone, PartialEq, Eq)]
8pub struct AuthRouteConfig {
9 http_client_factory: HttpClientFactory,
10}
11
12impl AuthRouteConfig {
13 /// Adapts an application-resolved HTTP client factory for auth requests.
14 pub fn from_http_client_factory(http_client_factory: HttpClientFactory) -> Self {
15 Self {
16 http_client_factory,
17 }
18 }
19
20 /// Returns the HTTP client factory represented by this routing configuration.
21 pub fn http_client_factory(&self) -> &HttpClientFactory {
22 &self.http_client_factory
23 }
24}