parlov-probe 0.3.0

Probe engine trait and HTTP execution layer for parlov.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `HttpProbe` — executes a single HTTP request and captures the full response surface.
//!
//! Two implementations exist behind `#[cfg]` gates:
//! - **Native** (`not(wasm32)`): uses `reqwest` with `std::time::Instant` for nanosecond timing.
//! - **WASM** (`wasm32`): uses the Cloudflare Workers Rust SDK (`worker::Fetch`) with
//!   `Date.now()` millisecond timing, suitable for Cloudflare Workers environments.

#[cfg(not(target_arch = "wasm32"))]
mod native;

#[cfg(target_arch = "wasm32")]
mod wasm;

#[cfg(not(target_arch = "wasm32"))]
pub use native::HttpProbe;

#[cfg(target_arch = "wasm32")]
pub use wasm::HttpProbe;