HTTP extension

Status helpers on an http Response. if (response.isSuccessful()) …

on

Methods

isServerError() → bool

Available on Response?, provided by the HTTP extension

True for status 500-599.
isSuccessful() → bool

Available on Response?, provided by the HTTP extension

True for status 200-299.
prettyLog({String params = ""}) → void

Available on Response?, provided by the HTTP extension

Logs method, url, status, params and body to the debug console.