Struct jsonrpsee_server::middleware::http::ProxyGetRequestLayer
source · pub struct ProxyGetRequestLayer { /* private fields */ }
Expand description
Layer that applies ProxyGetRequest
which proxies the GET /path
requests to
specific RPC method calls and that strips the response.
See ProxyGetRequest
for more details.
Implementations§
source§impl ProxyGetRequestLayer
impl ProxyGetRequestLayer
sourcepub fn new(
path: impl Into<String>,
method: impl Into<String>,
) -> Result<Self, InvalidPath>
pub fn new( path: impl Into<String>, method: impl Into<String>, ) -> Result<Self, InvalidPath>
Creates a new ProxyGetRequestLayer
.
See ProxyGetRequest
for more details.
Trait Implementations§
source§impl Clone for ProxyGetRequestLayer
impl Clone for ProxyGetRequestLayer
source§fn clone(&self) -> ProxyGetRequestLayer
fn clone(&self) -> ProxyGetRequestLayer
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 Debug for ProxyGetRequestLayer
impl Debug for ProxyGetRequestLayer
Auto Trait Implementations§
impl Freeze for ProxyGetRequestLayer
impl RefUnwindSafe for ProxyGetRequestLayer
impl Send for ProxyGetRequestLayer
impl Sync for ProxyGetRequestLayer
impl Unpin for ProxyGetRequestLayer
impl UnwindSafe for ProxyGetRequestLayer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)