Package io.servicetalk.http.api
Interface HttpCookiePair
- All Known Subinterfaces:
HttpSetCookie
- All Known Implementing Classes:
DefaultHttpCookiePair,DefaultHttpSetCookie
public interface HttpCookiePair
Interface defining a HTTP cookie-pair.
-
Method Summary
Modifier and TypeMethodDescriptionencoded()Get the encoded value of thisHttpCookiePair.booleanReturnstrueif the value should be wrapped in DQUOTE as described in cookie-value.name()Returns the name of thisHttpCookiePair.value()Returns the value of thisHttpCookiePair.
-
Method Details
-
name
CharSequence name()Returns the name of thisHttpCookiePair.- Returns:
- The name of this
HttpCookiePair
-
value
CharSequence value()Returns the value of thisHttpCookiePair.- Returns:
- The value of this
HttpCookiePair
-
isWrapped
boolean isWrapped()Returnstrueif the value should be wrapped in DQUOTE as described in cookie-value.- Returns:
trueif the value should be wrapped in DQUOTE as described in cookie-value.
-
encoded
CharSequence encoded()Get the encoded value of thisHttpCookiePair.- Returns:
- the encoded value of this
HttpCookiePair.
-