pub struct TrackCookies<T> { /* private fields */ }Expand description
A structure that tracks cookies for requests and responses.
This structure manages cookies according to RFC 6265. it is not fully compliant (it doesn’t check the secure flag, doesn’t purge expired entries) but should be good enough for just talking to porkbun.
Implementations§
Source§impl<T> TrackCookies<T>
impl<T> TrackCookies<T>
Trait Implementations§
Source§impl<T: MakeRequest> MakeRequest for TrackCookies<T>
impl<T: MakeRequest> MakeRequest for TrackCookies<T>
Source§async fn request(
&self,
request: Request<Full<Bytes>>,
) -> Result<Response<T::Body>, T::Error>
async fn request( &self, request: Request<Full<Bytes>>, ) -> Result<Response<T::Body>, T::Error>
Makes a request, adding cookies to the request and extracting cookies from the response.
Source§type Body = <T as MakeRequest>::Body
type Body = <T as MakeRequest>::Body
The HTTP body type of the returned response.
In order for a type to be useable as a transport layer for the Client
Body::Error has to implement Into<Self::Error>.Source§type Error = <T as MakeRequest>::Error
type Error = <T as MakeRequest>::Error
The error type this interface can return
Auto Trait Implementations§
impl<T> !Freeze for TrackCookies<T>
impl<T> !RefUnwindSafe for TrackCookies<T>
impl<T> Send for TrackCookies<T>where
T: Send,
impl<T> Sync for TrackCookies<T>where
T: Sync,
impl<T> Unpin for TrackCookies<T>where
T: Unpin,
impl<T> UnsafeUnpin for TrackCookies<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TrackCookies<T>where
T: UnwindSafe,
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