public interface ResponseCookies
Represents the cookies of a server response in a server exchange.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseCookiesAdds a cookie with the specified name and value.addCookie(Consumer<SetCookie.Configurator> configurer) Adds a cookie created with the specified configurer.
-
Method Details
-
addCookie
Adds a cookie with the specified name and value.
- Parameters:
name- a cookie namevalue- a cookie value- Returns:
- the response cookies
-
addCookie
Adds a cookie created with the specified configurer.
- Parameters:
configurer- a cookie configurer- Returns:
- the response cookies
-