|
|
|
@ -59,7 +59,7 @@ public class HeaderAssertions {
@@ -59,7 +59,7 @@ public class HeaderAssertions {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Match the primary value of the response header with a regex. |
|
|
|
|
* Match the first value of the response header with a regex. |
|
|
|
|
* @param name the header name |
|
|
|
|
* @param pattern the regex pattern |
|
|
|
|
*/ |
|
|
|
@ -71,9 +71,9 @@ public class HeaderAssertions {
@@ -71,9 +71,9 @@ public class HeaderAssertions {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Assert the primary value of the response header with a {@link Matcher}. |
|
|
|
|
* Assert the first value of the response header with a Hamcrest {@link Matcher}. |
|
|
|
|
* @param name the header name |
|
|
|
|
* @param matcher the matcher to sue |
|
|
|
|
* @param matcher the matcher to use |
|
|
|
|
* @since 5.1 |
|
|
|
|
*/ |
|
|
|
|
public WebTestClient.ResponseSpec value(String name, Matcher<? super String> matcher) { |
|
|
|
@ -83,9 +83,9 @@ public class HeaderAssertions {
@@ -83,9 +83,9 @@ public class HeaderAssertions {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Assert the primary value of the response header with a {@link Matcher}. |
|
|
|
|
* Consume the first value of the response header. |
|
|
|
|
* @param name the header name |
|
|
|
|
* @param consumer the matcher to sue |
|
|
|
|
* @param consumer the consumer to use |
|
|
|
|
* @since 5.1 |
|
|
|
|
*/ |
|
|
|
|
public WebTestClient.ResponseSpec value(String name, Consumer<String> consumer) { |
|
|
|
|