| Package | Description |
|---|---|
| com.linecorp.armeria.common |
Common types.
|
| Modifier and Type | Method and Description |
|---|---|
static CookieBuilder |
Cookie.builder(String name,
String value)
Returns a newly created
CookieBuilder which builds a Cookie. |
CookieBuilder |
CookieBuilder.domain(String domain)
Sets the domain of the
Cookie. |
CookieBuilder |
CookieBuilder.httpOnly(boolean httpOnly)
Sets whether the
Cookie is HTTP only. |
CookieBuilder |
CookieBuilder.maxAge(long maxAge)
Sets the maximum age of the
Cookie in seconds. |
CookieBuilder |
CookieBuilder.name(String name)
Sets the name of the
Cookie. |
CookieBuilder |
CookieBuilder.path(String path)
Sets the path of the
Cookie. |
CookieBuilder |
CookieBuilder.sameSite(String sameSite)
|
CookieBuilder |
CookieBuilder.secure(boolean secure)
Sets the security status of the
Cookie. |
default CookieBuilder |
Cookie.toBuilder()
Returns a new
CookieBuilder created from this Cookie. |
CookieBuilder |
CookieBuilder.value(String value)
Sets the value of the
Cookie. |
CookieBuilder |
CookieBuilder.valueQuoted(boolean valueQuoted)
Sets whether the value of the
Cookie needs to be wrapped with double quotes when encoding. |
| Modifier and Type | Method and Description |
|---|---|
default Cookie |
Cookie.withMutations(Consumer<CookieBuilder> mutator)
|
Copyright © 2020 LeanCloud. All rights reserved.