Companion

The common matches.

Properties

Link copied to clipboard

Accepts every request. A value, not a type: RequestMatch.Any.

Functions

Link copied to clipboard
fun get(path: String, vararg query: Pair<String, String>): RequestMatch

A GET of path whose query holds every pair of query.

Link copied to clipboard
fun header(name: String, value: String): RequestMatch

A request carrying a header name (ASCII case-insensitive) with exactly value among its values.

Link copied to clipboard
fun path(path: String, vararg query: Pair<String, String>): RequestMatch

Any method for path whose query holds every pair of query.

Link copied to clipboard
fun request(method: HttpMethod, path: String, vararg query: Pair<String, String>): RequestMatch

A request of method for path whose query holds every pair of query.