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
25 lines
555 B
TOML
25 lines
555 B
TOML
[package]
|
|
name = "codex-statsig"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
bytes = { workspace = true }
|
|
codex-http-client = { workspace = true }
|
|
http = { workspace = true }
|
|
oai-statsig-rust-client = { version = "0.1.0", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
anyhow = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
|
|
wiremock = { workspace = true }
|