Struct mio_httpc::SimpleCall [−][src]
pub struct SimpleCall { /* fields omitted */ }
Expand description
Simplified API for non-streaming requests and responses. If body exists it needs to be provided to Request. If response has a body it is returned in Response.
Implementations
Replaces self with an empty SimpleCall and returns result if any.
Abort and replace self with an empty call.
For quick comparison with httpc::event response. If cid is none will return false.
If using Option
Are we in receiving state
Perform operation. Returns true if request is finished.
An empty SimpleCall not associated with a valid mio::Token/CallId. Exists to be overwritten with an actual valid request. Always returns is_done true.
Trait Implementations
Performs the conversion.