pub struct InterceptedRequestBuilder { /* private fields */ }Expand description
A request that passed the interceptor hook, carrying the hook its response goes through. It
sends like a reqwest::RequestBuilder with RequestBuilderExt.
Implementations§
Source§impl InterceptedRequestBuilder
impl InterceptedRequestBuilder
pub fn new(inner: RequestBuilder, response_hook: Option<ResponseHook>) -> Self
pub fn with_retry(self) -> RetriableRequestBuilder
pub async fn send_json<T: DeserializeOwned + 'static>(self) -> Result<T>
pub async fn send_xml<T: DeserializeOwned + 'static>(self) -> Result<T>
pub async fn send_no_response(self) -> Result<()>
pub async fn send_raw(self) -> Result<Response>
Sourcepub fn build(self) -> Result<Request>
pub fn build(self) -> Result<Request>
The request without its response hook, for a caller that sends it another way.
Sourcepub fn into_parts(self) -> (RequestBuilder, Option<ResponseHook>)
pub fn into_parts(self) -> (RequestBuilder, Option<ResponseHook>)
The request and the hook its response must pass through, for a caller that sends it another way and still runs the hook.
Auto Trait Implementations§
impl !Freeze for InterceptedRequestBuilder
impl !RefUnwindSafe for InterceptedRequestBuilder
impl !UnwindSafe for InterceptedRequestBuilder
impl Forget for InterceptedRequestBuilder
impl Move for InterceptedRequestBuilder
impl Send for InterceptedRequestBuilder
impl Sync for InterceptedRequestBuilder
impl Unpin for InterceptedRequestBuilder
impl UnsafeUnpin for InterceptedRequestBuilder
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