pub struct OutboundRequest {
pub method: Method,
pub url: String,
pub headers: Vec<(String, String)>,
pub body: Bytes,
pub timeout: Duration,
pub ssl_verify: bool,
pub tls: Option<Arc<UpstreamTls>>,
}Expand description
A single outbound request. timeout covers the whole call: connect,
request write, and response body collection.
Fields§
§method: Method§url: String§headers: Vec<(String, String)>Header name/value pairs; names may repeat for multi-value headers.
body: Bytes§timeout: DurationWhole-call deadline. Callers should default to 3s for callouts.
ssl_verify: boolWhen false, TLS certificate verification is disabled (matching
APISIX’s ssl_verify: false). Ignored for plain-http URLs and when
tls is set (the identity carries its own verify flag).
tls: Option<Arc<UpstreamTls>>Per-upstream TLS identity (client cert / private CA). None uses the
shared verified/insecure clients — today’s behavior.
Implementations§
Auto Trait Implementations§
impl !Freeze for OutboundRequest
impl RefUnwindSafe for OutboundRequest
impl Send for OutboundRequest
impl Sync for OutboundRequest
impl Unpin for OutboundRequest
impl UnsafeUnpin for OutboundRequest
impl UnwindSafe for OutboundRequest
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
Mutably borrows from an owned value. Read more
§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>
Converts
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>
Converts
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