Module http_req::request

source ·
Expand description

creating and sending HTTP requests

Structs§

  • Every iteration increases count by one. When count is equal to stop, next() returns Some(true) (and sets count to 0), otherwise returns Some(false). Iterator never returns None.
  • Relatively higher-level struct for making HTTP requests.
  • Relatively low-level struct for making HTTP requests.

Enums§

Functions§

  • Connects to target host with a timeout
  • Copies a given amount of bytes from reader to writer.
  • Reads data from reader and checks for specified value. When data contains specified value or deadline is reached, stops reading. Returns read data as array of two vectors: elements before and after the val.
  • Copies data from reader to writer until the deadline 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.