SgRequest

Type Alias SgRequest 

Source
pub type SgRequest = Request<SgBody>;
Expand description

Alias for a request with a boxed body.

Aliased Type§

pub struct SgRequest { /* private fields */ }

Trait Implementations§

Source§

impl SgRequestExt for SgRequest

Source§

fn reflect_mut(&mut self) -> &mut Reflect

Get a mutable reference to the reflect extension.

§Panics

Panics if the reflect extension is not found. If you are using a request created by spacegate, this should never happen.

Source§

fn reflect(&self) -> &Reflect

Get a reference to the reflect extension.

§Panics

Panics if the reflect extension is not found. If you are using a request created by spacegate, this should never happen.

Source§

fn with_reflect(&mut self)

Add a reflect extension to the request if it does not exist.

Source§

fn extract<M: Extract>(&self) -> M

Extract a value from the request.

Source§

fn try_extract<M: OptionalExtract>(&self) -> Option<M>

Try to extract a value from the request.

Source§

fn inject<I: Inject>(&mut self, i: &I) -> BoxResult<()>

Inject some data into the request.

Source§

fn defer_call<F>(&mut self, f: F)
where F: FnOnce(SgRequest) -> SgRequest + Send + 'static,

Defer a call to the request. The call will be executed before the request has been sent to the backend.

Source§

fn path_iter(&self) -> PathIter<'_>

Source§

fn query_kv_iter(&self) -> Option<QueryKvIter<'_>>