classafButter::StickyCookiesMiddleware

sys::Obj
  afButter::StickyCookiesMiddleware : afButter::ButterMiddleware

Middleware that stores cookies found in response objects, and automatically sets them in subsequent requests. This effectively gives you a session when querying web applications.

StickyCookiesMiddleware inspects the Max-Age attribute of the cookies and automatically expires them when required.

StickyCookiesMiddleware does not respect the Domain, Path and Secure attributes.

cookies

Source

Cookie[] cookies()

A read only list of cookies.

sendRequest

Source

virtual override ButterResponse sendRequest(Butter butter, ButterRequest req)

setCookie

Source

Void setCookie(Cookie cookie)

Sets the the cookie to be included in the next request