Skip to main content
Version: 3.28.0

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.