mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
## Why Statsig requests need to honor the caller's proxy, TLS, and network policy settings. ## What changed Add a `codex-statsig` crate that adapts a caller-supplied `RouteAwareClientPool` to the Statsig SDK's HTTP interface. The adapter requests identity encoding, applies the SDK's timeout and optional response body limit, and leaves HTTP status handling and retries to the SDK. ## Testing Mock-server tests cover request forwarding, preservation of HTTP error responses, response size limits, timeout error mapping, and policy denial before a request reaches the server. GitOrigin-RevId: 6e78435f1f93ee272977b2f0058afd8f485cf4e0
7 lines
117 B
Python
7 lines
117 B
Python
load("//:defs.bzl", "codex_rust_crate")
|
|
|
|
codex_rust_crate(
|
|
name = "statsig",
|
|
crate_name = "codex_statsig",
|
|
)
|