Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResponsePredicateResult

Represents the outcome of a ResponsePredicate applied to an .

Hierarchy

  • ResponsePredicateResult

Index

Methods

message

  • message(): string | null
  • The failure message. May be null.

    Returns string | null

response

  • The which has been tested.

    Returns HttpResponse<Buffer> | null

succeeded

  • succeeded(): boolean
  • Whether the result is a success or failure.

    Returns boolean

Static failure

  • Creates a failed result.

    Parameters

    • message: string

    Returns ResponsePredicateResult

Static success

Generated using TypeDoc