Expand description
creating and sending HTTP requests
Structs§
- Counter
- Every iteration increases
countby one. Whencountis equal tostop,next()returnsSome(true)(and setscountto 0), otherwise returnsSome(false). Iterator never returnsNone. - Request
- Relatively higher-level struct for making HTTP requests.
- Request
Builder - Relatively low-level struct for making HTTP requests.
Enums§
- Http
Version - HTTP versions
- Method
- HTTP request methods
Functions§
- copy_
exact - Copies a given amount of bytes from
readertowriter. - copy_
until - Reads data from
readerand checks for specifiedvalue. When data contains specified value ordeadlineis reached, stops reading. Returns read data as array of two vectors: elements before and after theval. - copy_
with_ timeout - Copies data from
readertowriteruntil thedeadlineis reached. Limitations of current implementation may cause exceeding the deadline. Returns how many bytes has been read. - get
- Creates and sends GET request. Returns response for this request.
- head
- Creates and sends HEAD request. Returns response for this request.
- post
- Creates and sends POST request. Returns response for this request.