All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[0.3.0] - 2026-04-09
Changed
- Breaking: All timing consolidated into
finished_result.timingmap —finished_result.duration_usreplaced bytiming.total_us, andbody_observation.duration_us/body_observation.time_to_first_byte_usremoved. Observations are now purely content metadata (hash, size, preview, body)
Added
collect_timing: trueoption forproxy/2enables per-phase timing capture (queue, connect, send, recv, idle_time, reused_connection) from HTTP client telemetryPhilter.Timingmodule for telemetry-based phase timing with lazy global handler attachment
[0.2.1] - 2026-03-11
Fixed
- Ensure handler module is loaded before checking optional callback exports, fixing silent callback skip on first use (
7b47409)
[0.2.0] - 2026-03-11
Added
:extra_headersoption forproxy/2andProxyPlug— merge additional headers into the filtered outbound request, replacing existing headers with matching names (044e8fc):strip_headersoption forproxy/2andProxyPlug— remove named headers (case-insensitive) before forwarding (044e8fc)- Mutual exclusion validation:
:headerscannot be combined with:extra_headersor:strip_headers(raisesArgumentError) (044e8fc) - Configurable logging via
:log_leveloption — lifecycle events logged at the configured level, or suppressed withfalse(daa8657)
Fixed
- Preserve explicit
hostheader in caller-supplied:headersinstead of always rewriting it (d2ac7b1) - Rewrite
hostheader to match upstream URL in the default (filtered) path (475da4c)
[0.1.0] - 2025-02-04
Added
- Initial release (extracted from Spike)
Philter.proxy/2for controller-based proxyingPhilter.ProxyPlugfor router-level forwardingPhilter.Handlerbehaviour for lifecycle callbackshandle_request_started/2- Called before sending to upstreamhandle_response_started/2- Called on first byte received (TTFB)handle_response_finished/2- Called with complete observations
- Body observation with O(1) memory:
- SHA256 hash computed incrementally
- Byte size tracking
- UTF-8 safe preview (first 64KB)
- Timing information (TTFB, duration)
- Conditional body accumulation based on content-type and size
- Configurable timeouts, payload limits, content-type filtering
- Full test coverage with Bypass for upstream mocking