• Type for the response argument for the http request callback.

Fields

@:optionaloptionalurl:Null<String>

  • The final URL after redirects (if any)

status:Int

  • Status code.

response:String

  • Response data.

@:optionaloptionalrange_start:Null<Float>

  • The start offset into the requested file

@:optionaloptionalrange_end:Null<Float>

  • The end offset into the requested file (inclusive)

@:optionaloptionalpath:Null<String>

  • The stored path (if saved to disc)

headers:DynamicAccess<String>

  • Response headers.

@:optionaloptionalerror:Null<String>

  • If any unforeseen errors occurred (e.g. file I/O)

@:optionaloptionaldocument_size:Null<Float>

  • The full size of the requested file

@:optionaloptionalbytes_total:Null<Float>

  • The total amount of bytes for a request, only if option report_progress is true

@:optionaloptionalbytes_received:Null<Float>

  • The amount of bytes received/sent for a request, only if option report_progress is true