pub struct ContinueResponseParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> ContinueResponseParamsBuilder<'a>
impl<'a> ContinueResponseParamsBuilder<'a>
Sourcepub fn responseCode(self, responseCode: i64) -> Self
pub fn responseCode(self, responseCode: i64) -> Self
An HTTP response code. If absent, original response code will be used.
Sourcepub fn responsePhrase(self, responsePhrase: impl Into<Cow<'a, str>>) -> Self
pub fn responsePhrase(self, responsePhrase: impl Into<Cow<'a, str>>) -> Self
A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
Sourcepub fn responseHeaders(self, responseHeaders: Vec<HeaderEntry<'a>>) -> Self
pub fn responseHeaders(self, responseHeaders: Vec<HeaderEntry<'a>>) -> Self
Response headers. If absent, original response headers will be used.
Sourcepub fn binaryResponseHeaders(
self,
binaryResponseHeaders: impl Into<Cow<'a, str>>,
) -> Self
pub fn binaryResponseHeaders( self, binaryResponseHeaders: impl Into<Cow<'a, str>>, ) -> Self
Alternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can’t be transmitted over the protocol as text. (Encoded as a base64 string when passed over JSON)
pub fn build(self) -> ContinueResponseParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContinueResponseParamsBuilder<'a>
impl<'a> RefUnwindSafe for ContinueResponseParamsBuilder<'a>
impl<'a> Send for ContinueResponseParamsBuilder<'a>
impl<'a> Sync for ContinueResponseParamsBuilder<'a>
impl<'a> Unpin for ContinueResponseParamsBuilder<'a>
impl<'a> UnsafeUnpin for ContinueResponseParamsBuilder<'a>
impl<'a> UnwindSafe for ContinueResponseParamsBuilder<'a>
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