OxL Reference

method Response.failed

true when the call ended with a NetError (a refusal, or an error of the handler itself, that next reported).

Example:

oxl✓ checked in CI
fn main() io {
  print("{Response{ passed: true }.failed()} {Response.refuse(Timeout{}).failed()}")
}
Output
false true
pub(api) fn failed() -> bool

Complexity. O(1).

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/rpc.oxl:478

See also