Struct CurlExportOptions
pub struct CurlExportOptions { /* private fields */ }http and std only.Expand description
Policies used while converting an HTTP request into curl arguments.
The default favors faithful request replay without requiring shell-specific
helper programs: methods and HTTP versions are explicit, an explicit Host
is preserved, curl manages body framing, and encoded responses are
decompressed when the request contains Accept-Encoding.
Implementations§
§impl CurlExportOptions
impl CurlExportOptions
pub const fn faithful() -> CurlExportOptions
pub const fn faithful() -> CurlExportOptions
Options favoring faithful request replay and curl-only command strings.
pub fn with_response_decompression(self, enabled: bool) -> CurlExportOptions
pub fn with_response_decompression(self, enabled: bool) -> CurlExportOptions
Enable or disable curl’s automatic response decompression.
pub fn set_response_decompression(
&mut self,
enabled: bool,
) -> &mut CurlExportOptions
pub fn set_response_decompression( &mut self, enabled: bool, ) -> &mut CurlExportOptions
Enable or disable curl’s automatic response decompression.
pub fn with_http_version(self, enabled: bool) -> CurlExportOptions
pub fn with_http_version(self, enabled: bool) -> CurlExportOptions
Enable or disable communicating the request’s recorded HTTP version to curl.
HTTP/0.9 only permits matching responses; HTTPS HTTP/2 remains negotiated.
pub fn set_http_version(&mut self, enabled: bool) -> &mut CurlExportOptions
pub fn set_http_version(&mut self, enabled: bool) -> &mut CurlExportOptions
Enable or disable communicating the request’s recorded HTTP version to curl.
HTTP/0.9 only permits matching responses; HTTPS HTTP/2 remains negotiated.
pub fn with_explicit_method(self, enabled: bool) -> CurlExportOptions
pub fn with_explicit_method(self, enabled: bool) -> CurlExportOptions
Enable or disable always rendering the request method explicitly.
Methods that curl would otherwise change because a body is present are still rendered explicitly when this option is disabled.
pub fn set_explicit_method(&mut self, enabled: bool) -> &mut CurlExportOptions
pub fn set_explicit_method(&mut self, enabled: bool) -> &mut CurlExportOptions
Enable or disable always rendering the request method explicitly.
Methods that curl would otherwise change because a body is present are still rendered explicitly when this option is disabled.
pub fn with_host_header(self, enabled: bool) -> CurlExportOptions
pub fn with_host_header(self, enabled: bool) -> CurlExportOptions
Enable or disable preserving an explicit Host header.
pub fn set_host_header(&mut self, enabled: bool) -> &mut CurlExportOptions
pub fn set_host_header(&mut self, enabled: bool) -> &mut CurlExportOptions
Enable or disable preserving an explicit Host header.
pub fn with_framing_headers(self, enabled: bool) -> CurlExportOptions
pub fn with_framing_headers(self, enabled: bool) -> CurlExportOptions
Enable or disable preserving Content-Length and Transfer-Encoding.
Disabled by default because curl should normally derive framing from the selected body source.
pub fn set_framing_headers(&mut self, enabled: bool) -> &mut CurlExportOptions
pub fn set_framing_headers(&mut self, enabled: bool) -> &mut CurlExportOptions
Enable or disable preserving Content-Length and Transfer-Encoding.
Disabled by default because curl should normally derive framing from the selected body source.
pub fn with_script_compatibility(
self,
compatibility: CurlScriptCompatibility,
) -> CurlExportOptions
pub fn with_script_compatibility( self, compatibility: CurlScriptCompatibility, ) -> CurlExportOptions
Select the compatibility target used when rendering a command string.
This option does not affect the shell-independent Command APIs.
pub fn set_script_compatibility(
&mut self,
compatibility: CurlScriptCompatibility,
) -> &mut CurlExportOptions
pub fn set_script_compatibility( &mut self, compatibility: CurlScriptCompatibility, ) -> &mut CurlExportOptions
Select the compatibility target used when rendering a command string.
This option does not affect the shell-independent Command APIs.
Trait Implementations§
§impl Clone for CurlExportOptions
impl Clone for CurlExportOptions
§fn clone(&self) -> CurlExportOptions
fn clone(&self) -> CurlExportOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CurlExportOptions
§impl Debug for CurlExportOptions
impl Debug for CurlExportOptions
§impl Default for CurlExportOptions
impl Default for CurlExportOptions
§fn default() -> CurlExportOptions
fn default() -> CurlExportOptions
impl Eq for CurlExportOptions
§impl PartialEq for CurlExportOptions
impl PartialEq for CurlExportOptions
impl StructuralPartialEq for CurlExportOptions
Auto Trait Implementations§
impl Freeze for CurlExportOptions
impl RefUnwindSafe for CurlExportOptions
impl Send for CurlExportOptions
impl Sync for CurlExportOptions
impl Unpin for CurlExportOptions
impl UnsafeUnpin for CurlExportOptions
impl UnwindSafe for CurlExportOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more