ResponsePredicateResult

Represents the outcome of a @see \io\vertx\jphp\ext\web\client\predicate\ResponsePredicate applied to an .

package

Default

Methods

__construct

__construct() 

Creates a failed result.

failure( $arg0) : \io\vertx\jphp\ext\web\client\predicate\ResponsePredicateResult
static

The failure message. May be <code>null</code>.

message() : string

Response

string

The which has been tested.

response() : \io\vertx\jphp\ext\web\client\predicate\HttpResponse<Buffer>

Response

\io\vertx\jphp\ext\web\client\predicate\HttpResponse

{@code null} after the result has been created, or the tested response for converters created with {@link ErrorConverter#createFullBody(Function)}

Whether the result is a success or failure.

succeeded() : boolean

Response

boolean

{@code true} if the {@link ResponsePredicate} was applied successfully, false otherwise

success

success() : \io\vertx\jphp\ext\web\client\predicate\ResponsePredicateResult
static