Module restest::request [−][src]
Expand description
The various states of a request.
A request has a specific lifecycle:
- a
RequestBuilder
is created using one ofRequest::get
,Request::post
and so on, - a
Request
is created by callingwith_body
on theRequestBuilder
, - the
Request
is passed as argument ofContext::run
, returning aRequestResult
, - the final request body is constructed by calling
expect_status
.
The documentation for Request
provide more specific description.
Structs
An HTTP request we’re about to run.
Allows encode metadata in order to create a Request
.
The data returned by the server once the request is performed.