public interface CookieStorage
HttpClientConf.cookieStorage(CookieStorage)
.
Before sending a request, HttpClient calls getCookies(HttpRequest)
;
after receiving the response, HttpClient calls setCookies(HttpRequest, HttpResponse)
.
Abstract Methods | |
---|---|
Async<List<Cookie>> |
getCookies(HttpRequest request)
Get the cookies that should be sent with the request.
|
Async<Void> |
setCookies(HttpRequest request,
HttpResponse response)
Save the cookies carried in the response.
|
Static Method | |
CookieStorage |
newInMemoryStorage()
Create a new instance of an in-memory implementation of CookieStorage.
|
Async<List<Cookie>> getCookies(HttpRequest request)
Async<Void> setCookies(HttpRequest request, HttpResponse response)
static CookieStorage newInMemoryStorage()