Interface ResponseCookies


public interface ResponseCookies

Represents the cookies of a server response in a server exchange.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
Response
  • Method Details

    • addCookie

      default ResponseCookies addCookie(String name, String value)

      Adds a cookie with the specified name and value.

      Parameters:
      name - a cookie name
      value - a cookie value
      Returns:
      the response cookies
    • addCookie

      ResponseCookies addCookie(Consumer<SetCookie.Configurator> configurer)

      Adds a cookie created with the specified configurer.

      Parameters:
      configurer - a cookie configurer
      Returns:
      the response cookies