Struct poem::test::TestRequestBuilder
source[−]pub struct TestRequestBuilder<'a, E> { /* private fields */ }
This is supported on crate feature
test
only.Expand description
A request builder for testing.
Implementations
Sets the query string for this request.
pub fn header<K, V>(self, key: K, value: V) -> Self where
K: TryInto<HeaderName>,
V: TryInto<HeaderValue>,
pub fn header<K, V>(self, key: K, value: V) -> Self where
K: TryInto<HeaderName>,
V: TryInto<HeaderValue>,
Sets the header value for this request.
Sets the content type for this request.
Sets the extension data for this request.
Send this request to endpoint to get the response.
Auto Trait Implementations
impl<'a, E> !RefUnwindSafe for TestRequestBuilder<'a, E>
impl<'a, E> Send for TestRequestBuilder<'a, E> where
E: Sync,
impl<'a, E> Sync for TestRequestBuilder<'a, E> where
E: Sync,
impl<'a, E> Unpin for TestRequestBuilder<'a, E>
impl<'a, E> !UnwindSafe for TestRequestBuilder<'a, E>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more