Package brave.http
Class HttpRequestMatchers
java.lang.Object
brave.http.HttpRequestMatchers
public final class HttpRequestMatchers extends Object
Null safe matchers for use in
HttpRuleSampler
.- Since:
- 5.8
- See Also:
Matchers
-
Constructor Summary
Constructors Constructor Description HttpRequestMatchers()
-
Method Summary
Modifier and Type Method Description static Matcher<HttpRequest>
methodEquals(String method)
Matcher for case-sensitive HTTP methods, such as "GET" and "POST"static Matcher<HttpRequest>
pathStartsWith(String pathPrefix)
-
Constructor Details
-
HttpRequestMatchers
public HttpRequestMatchers()
-
-
Method Details
-
methodEquals
Matcher for case-sensitive HTTP methods, such as "GET" and "POST" -
pathStartsWith
-