pub struct ResponseOverrides {
pub status: Option<u16>,
pub phrase: Option<String>,
pub headers: Option<Vec<(String, String)>>,
}Expand description
Per-field overrides for Fetch.continueResponse.
Applied to an upstream response paused at the Response stage to rewrite
its status line and/or headers while keeping Chrome’s original body
(contrast with PausedRequest::respond,
which serves a fully synthetic body). All fields are optional — None
leaves Chrome’s original value unchanged. Use Default to start empty.
Header semantics are CDP-faithful replacement, not merge: when headers
is Some, the supplied set becomes the entire response header block, so
include every header you want forwarded. None keeps Chrome’s headers.
Fields§
§status: Option<u16>Replace the HTTP status code (responseCode). None keeps Chrome’s.
phrase: Option<String>Replace the HTTP status line text (responsePhrase, e.g. "OK").
headers: Option<Vec<(String, String)>>Replace the full response header set (CDP semantics: replacement, not merge). Order is preserved on the wire.
Trait Implementations§
Source§impl Clone for ResponseOverrides
impl Clone for ResponseOverrides
Source§fn clone(&self) -> ResponseOverrides
fn clone(&self) -> ResponseOverrides
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more