Package | Description |
---|---|
io.restassured.http |
Modifier and Type | Method and Description |
---|---|
Cookie.Builder |
Cookie.Builder.setComment(String comment)
Set the comment describing the purpose of this cookie.
|
Cookie.Builder |
Cookie.Builder.setDomain(String domain)
Set domain attribute of the cookie.
|
Cookie.Builder |
Cookie.Builder.setExpiryDate(Date date)
Set the expiration
Date of the cookie. |
Cookie.Builder |
Cookie.Builder.setHttpOnly(boolean httpOnly)
Indicates that the cookie is only readable by the HTTP server and not other API's such as JavaScript.
|
Cookie.Builder |
Cookie.Builder.setMaxAge(int maxAge)
Set the maximum age of the cookie, specified in seconds,
By default,
-1 indicating the cookie will persist
until browser shutdown. |
Cookie.Builder |
Cookie.Builder.setPath(String path)
Set the path attribute of the cookie.
|
Cookie.Builder |
Cookie.Builder.setSameSite(String sameSite)
Set the SameSite attribute of the cookie.
|
Cookie.Builder |
Cookie.Builder.setSecured(boolean secured)
Indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL.
|
Cookie.Builder |
Cookie.Builder.setVersion(int version)
Sets the version of the cookie protocol this cookie complies with.
|
Copyright © 2010–2020. All rights reserved.