pub struct ProxyGetRequest<S> { /* private fields */ }Expand description
Proxy GET /path requests to the specified RPC method calls.
Request
The GET /path requests are modified into valid POST requests for
calling the RPC method. This middleware adds appropriate headers to the
request, and completely modifies the request BODY.
Response
The response of the RPC method is stripped down to contain only the method’s response, removing any RPC 2.0 spec logic regarding the response’ body.
Implementations§
source§impl<S> ProxyGetRequest<S>
impl<S> ProxyGetRequest<S>
Trait Implementations§
source§impl<S: Clone> Clone for ProxyGetRequest<S>
impl<S: Clone> Clone for ProxyGetRequest<S>
source§fn clone(&self) -> ProxyGetRequest<S>
fn clone(&self) -> ProxyGetRequest<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<S: Debug> Debug for ProxyGetRequest<S>
impl<S: Debug> Debug for ProxyGetRequest<S>
source§impl<S> Service<Request<Body>> for ProxyGetRequest<S>where
S: Service<Request<Body>, Response = Response<Body>>,
S::Response: 'static,
S::Error: Into<Box<dyn Error + Send + Sync>> + 'static,
S::Future: Send + 'static,
impl<S> Service<Request<Body>> for ProxyGetRequest<S>where
S: Service<Request<Body>, Response = Response<Body>>,
S::Response: 'static,
S::Error: Into<Box<dyn Error + Send + Sync>> + 'static,
S::Future: Send + 'static,
§type Future = Pin<Box<dyn Future<Output = Result<<ProxyGetRequest<S> as Service<Request<Body>>>::Response, <ProxyGetRequest<S> as Service<Request<Body>>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<ProxyGetRequest<S> as Service<Request<Body>>>::Response, <ProxyGetRequest<S> as Service<Request<Body>>>::Error>> + Send + 'static, Global>>
The future response value.