Shuttle_http.RequestSourcet Represents a HTTP 1.1 request.
with_body returns a new request where every value is the same as the input request but the body is replaced with the function input.
transfer_encoding returns the inferred transfer encoding based on the request's http headers.
add_transfer_encoding t encoding adds transfer-encoding information to the request headers.
iter_headers t ~f iterates over all request headers and forwards them to the user provided callback.
add_header_unless_exists t ~key ~data returns a request with a new header added to it if the header isn't already present in the request.
add_header t ~key ~data returns a request with a new header added to it.
header t key returns Some data if key is found in the list of request headers. It returns None if the requested header isn't found.
header_multi t key returns a list of all values associated with the request header name. It returns an empty list if the requested header isn't found.
remove_header t key removes all request headers that match the user provided key.
header_exists t key returns if a request header matches the user provided key.