pub struct StreamingForward {
pub status: u16,
pub body: ByteBody,
pub content_type: Option<String>,
pub pool_reuse: bool,
}Expand description
The outcome of a streaming verbatim forward (ADR-014): the upstream status
and its response body as a live ByteBody stream, piped
back to the client without ever being collected. Unlike CursorOutcome, the
body is not materialized here, so this carries no derives (the stream is
one-shot).
Fields§
§status: u16The upstream HTTP status.
body: ByteBodyThe upstream response body, streamed back verbatim.
content_type: Option<String>The upstream Content-Type, forwarded verbatim so a non-JSON passthrough
body is not mislabeled application/json. None ⇒ the caller defaults to
JSON.
pool_reuse: boolWhether this op rode a reused pooled connection (NFR-P telemetry).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StreamingForward
impl !Sync for StreamingForward
impl !UnwindSafe for StreamingForward
impl Freeze for StreamingForward
impl Send for StreamingForward
impl Unpin for StreamingForward
impl UnsafeUnpin for StreamingForward
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more