request

fun request(method: HttpMethod, path: String, vararg query: Pair<String, String>): RequestMatch(source)

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

Return

the match.

Parameters

method

the method, compared by name.

path

the percent-encoded path, as Url.encodedPath prints it.

query

the decoded name to value pairs the query must hold; none by default.