Class CookieClient
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Client<T_I,T_O>>
com.linecorp.armeria.client.DecoratingClient<I,O,I,O>
com.linecorp.armeria.client.SimpleDecoratingClient<HttpRequest,HttpResponse>
com.linecorp.armeria.client.SimpleDecoratingHttpClient
com.linecorp.armeria.client.cookie.CookieClient
- All Implemented Interfaces:
Client<HttpRequest,HttpResponse>
,HttpClient
,Unwrappable
Decorates an
HttpClient
to set cookies to Cookie
header of outgoing HttpRequest
and
store cookies from Set-Cookie
headers of incoming HttpResponse
.-
Method Summary
Modifier and TypeMethodDescriptionexecute(ClientRequestContext ctx, HttpRequest req)
static Function<? super HttpClient,CookieClient>
Creates a newCookieClient
decorator.static Function<? super HttpClient,CookieClient>
newDecorator(CookieJar cookieJar)
Creates a newCookieClient
decorator with aCookieJar
implementation.static Function<? super HttpClient,CookieClient>
newDecorator(CookiePolicy cookiePolicy)
Creates a newCookieClient
decorator with a specifiedCookiePolicy
.Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap
-
Method Details
-
newDecorator
Creates a newCookieClient
decorator. -
newDecorator
Creates a newCookieClient
decorator with a specifiedCookiePolicy
. -
newDecorator
Creates a newCookieClient
decorator with aCookieJar
implementation. -
execute
Description copied from interface:Client
-