Skip to main content
Version: 4.0.1

Headers.getSetCookie()

The getSetCookie() method of the Headers interface returns an array of all the values of the Set-Cookie headers, returning an empty list if none are present.

Syntax​

getSetCookie()

Return value​

String[] representing the list of Set-Cookie headers.