Struct poem::RequestBuilder [−][src]
pub struct RequestBuilder { /* fields omitted */ }
Expand description
An request builder.
Implementations
Sets the HTTP method for this request.
By default this is Method::GET
.
Sets the URI for this request.
By default this is /
.
Sets the HTTP version 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>,
Appends a header to this request.
Inserts a typed header to this request.
Sets the Content-Type
header to this request.
Adds an extension to this request.
Consumes this builder, using the provided body to return a constructed Request.
Auto Trait Implementations
impl !RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl !UnwindSafe for RequestBuilder
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