Skip to main content

HTTP.request

requestreqerror_on_failure_code

Documentation

Sends a request using the HTTP client. The response body will contain a raw Input_Stream which can be read once. Please note, this must be closed after use (either directly or via the helpers on Response_Body).

Arguments

  • req: The HTTP request to send using self HTTP client.
  • error_on_failure_code: Whether or not to throw an error if the response code is not a success code.