public final class TkFlash extends Object implements Take
This decorator helps your "take" to automate flash messages and destroy cookies on their way back, from the browser to the server. This is what a browser will send back:
GET / HTTP/1.1 Host: www.example.com Cookie: RsFlash=can%27t%20save%20your%20post%2C%20sorry/SEVERE
This decorator adds "Set-Cookie" with an empty value to the response. That's all it's doing. All you need to do is to decorate your existing "take", for example:
new FtBasic( new TkFlash(TkFork(new FkRegex("/", "hello, world!"))), 8080 ).start(Exit.NEVER); }
The class is immutable and thread-safe.
public TkFlash(Take take)
take
- Original takeCopyright © 2015–2019 Take. All rights reserved.