Expand description
creating and sending HTTP requests
Structs§
- Every iteration increases
count
by one. Whencount
is equal tostop
,next()
returnsSome(true)
(and setscount
to 0), otherwise returnsSome(false)
. Iterator never returnsNone
. - Relatively higher-level struct for making HTTP requests.
- Relatively low-level struct for making HTTP requests.
Enums§
- HTTP versions
- HTTP request methods
Functions§
- Connects to target host with a timeout
- Copies a given amount of bytes from
reader
towriter
. - Reads data from
reader
and checks for specifiedval
ue. When data contains specified value ordeadline
is reached, stops reading. Returns read data as array of two vectors: elements before and after theval
. - Copies data from
reader
towriter
until thedeadline
is reached. Limitations of current implementation may cause exceeding the deadline. Returns how many bytes has been read. - Creates and sends GET request. Returns response for this request.
- Creates and sends HEAD request. Returns response for this request.
- Creates and sends POST request. Returns response for this request.