Properties
Static Readonly JSON
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:947
Static Readonly SC_ACCEPTED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:677
Static Readonly SC_BAD_GATEWAY
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:907
Static Readonly SC_BAD_REQUEST
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:757
Static Readonly SC_CLIENT_ERRORS
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:752
Static Readonly SC_CONFLICT
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:802
Static Readonly SC_CONTINUE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:642
Static Readonly SC_CREATED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:672
Static Readonly SC_EARLY_HINTS
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:657
Static Readonly SC_EXPECTATION_FAILED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:842
Static Readonly SC_FAILED_DEPENDENCY
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:862
Static Readonly SC_FORBIDDEN
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:772
Static Readonly SC_FOUND
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:722
Static Readonly SC_GATEWAY_TIMEOUT
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:917
Static Readonly SC_GONE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:807
Static Readonly SC_HTTP_VERSION_NOT_SUPPORTED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:922
Static Readonly SC_INFORMATIONAL_RESPONSE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:637
Static Readonly SC_INSUFFICIENT_STORAGE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:932
Static Readonly SC_INTERNAL_SERVER_ERROR
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:897
Static Readonly SC_LENGTH_REQUIRED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:812
Static Readonly SC_LOCKED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:857
Static Readonly SC_METHOD_NOT_ALLOWED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:782
Static Readonly SC_MISDIRECTED_REQUEST
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:847
Static Readonly SC_MOVED_PERMANENTLY
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:717
Static Readonly SC_MULTIPLE_CHOICES
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:712
Static Readonly SC_MULTI_STATUS
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:702
Static Readonly SC_NETWORK_AUTHENTICATION_REQUIRED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:942
Static Readonly SC_NON_AUTHORITATIVE_INFORMATION
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:682
Static Readonly SC_NOT_ACCEPTABLE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:787
Static Readonly SC_NOT_EXTENDED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:937
Static Readonly SC_NOT_FOUND
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:777
Static Readonly SC_NOT_IMPLEMENTED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:902
Static Readonly SC_NOT_MODIFIED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:732
Static Readonly SC_NO_CONTENT
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:687
Static Readonly SC_OK
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:667
Static Readonly SC_PARTIAL_CONTENT
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:697
Static Readonly SC_PAYMENT_REQUIRED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:767
Static Readonly SC_PERMANENT_REDIRECT
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:747
Static Readonly SC_PRECONDITION_FAILED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:817
Static Readonly SC_PRECONDITION_REQUIRED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:877
Static Readonly SC_PROCESSING
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:652
Static Readonly SC_PROXY_AUTHENTICATION_REQUIRED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:792
Static Readonly SC_REDIRECTION
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:707
Static Readonly SC_REQUESTED_RANGE_NOT_SATISFIABLE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:837
Static Readonly SC_REQUEST_ENTITY_TOO_LARGE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:822
Static Readonly SC_REQUEST_HEADER_FIELDS_TOO_LARGE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:887
Static Readonly SC_REQUEST_TIMEOUT
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:797
Static Readonly SC_REQUEST_URI_TOO_LONG
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:827
Static Readonly SC_RESET_CONTENT
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:692
Static Readonly SC_SEE_OTHER
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:727
Static Readonly SC_SERVER_ERRORS
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:892
Static Readonly SC_SERVICE_UNAVAILABLE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:912
Static Readonly SC_SUCCESS
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:662
Static Readonly SC_SWITCHING_PROTOCOLS
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:647
Static Readonly SC_TEMPORARY_REDIRECT
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:742
Static Readonly SC_TOO_MANY_REQUESTS
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:882
Static Readonly SC_UNAUTHORIZED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:762
Static Readonly SC_UNORDERED_COLLECTION
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:867
Static Readonly SC_UNPROCESSABLE_ENTITY
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:852
Static Readonly SC_UNSUPPORTED_MEDIA_TYPE
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:832
Static Readonly SC_UPGRADE_REQUIRED
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:872
Static Readonly SC_USE_PROXY
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:737
Static Readonly SC_VARIANT_ALSO_NEGOTIATES
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:927
Methods
errorConverter
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:981
Static contentType
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:962
Parameters
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:967
Parameters
Static create
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:972
Parameters
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:977
Parameters
Static status
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:952
Parameters
Defined in io.vertx/vertx-web-client/target/npm/index.d.ts:957
Parameters
Legend
Static property
Static method
A predicate on .
By default, a Vert.x Web Client request ends with an error only if something wrong happens at the network level. In other words, a
404 Not Found
response, or a response with the wrong content type, are NOT considered as failures.[Response predicates] ResponsePredicate can fail a request when the response does not match some criteria.
Custom predicate instances can be used with .
As a convenience, a few predicates for common uses cases are predefined. For example:
2xx
code, orHowever, you can create a new ResponsePredicate instance from an existing one using {@link ResponsePredicate#create} or {@link ResponsePredicate#create} when the body is required to build the validation failure.