13 lines
626 B
Markdown
13 lines
626 B
Markdown
# Forward proxy fixture
|
|
|
|
`ProxyFixture` runs an in-process forward proxy so the proxy lane needs no external service.
|
|
|
|
| Factory | Behaviour |
|
|
|---|---|
|
|
| `ProxyFixture.openProxy()` | accepts CONNECT and tunnels to the target |
|
|
| `ProxyFixture.authenticatingProxy(user, password)` | answers `407` until `Proxy-Authorization` matches |
|
|
|
|
The fixture records every request line and every `Proxy-Authorization` value it saw, which is what
|
|
lets the suite prove design §24.3: proxy credentials never appear on the target request, and a proxy
|
|
CONNECT failure is reported as `HttpProxyException` rather than as a target TLS failure.
|