pub struct ProxyConfig {
pub upstream: Uri,
pub max_message_bytes: usize,
pub ws_keepalive: Option<Duration>,
pub ws_keepalive_timeout: Duration,
pub schema: SchemaSource,
pub reflection_ttl: Duration,
pub admin_reload_path: Option<String>,
pub allow_implicit_codec: bool,
}Expand description
Configuration for serve_proxy — front a remote upstream gRPC server.
Fields§
§upstream: UriUpstream gRPC endpoint (e.g. http://127.0.0.1:50051).
max_message_bytes: usize§ws_keepalive: Option<Duration>§ws_keepalive_timeout: Duration§schema: SchemaSourceDescriptor source for +json termination (None ⇒ binary-only).
reflection_ttl: DurationReflection snapshot refresh interval (default 4h).
admin_reload_path: Option<String>Optional management endpoint: POST to this exact path forces a reflection reload.
allow_implicit_codec: boolAccept plain application/json / blank on main gRPC paths (off by default).
Trait Implementations§
Source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
Source§fn clone(&self) -> ProxyConfig
fn clone(&self) -> ProxyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ProxyConfig
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnsafeUnpin for ProxyConfig
impl UnwindSafe for ProxyConfig
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
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request