PageRenderTime 215ms CodeModel.GetById 121ms app.highlight 3ms RepoModel.GetById 58ms app.codeStats 0ms

/src/fan/Flash.fan

https://bitbucket.org/afrankvt/draft/
Unknown | 27 lines | 23 code | 4 blank | 0 comment | 0 complexity | 692451787082509a32c60541df046b0c MD5 | raw file
 1//
 2// Copyright (c) 2011, Andy Frank
 3// Licensed under the MIT License
 4//
 5// History:
 6//   1 Jul 2011  Andy Frank  Creation
 7//
 8
 9using web
10
11**
12** Flash manages short-term messaging between requests.
13**
14class Flash
15{
16  ** Values from previous request.
17  Str:Str req { private set }
18
19  ** Map used to build flash for the next request.
20  Str:Str res := Str:Str[:] { private set }
21
22  ** Internal ctor.
23  internal new make(Str:Str req)
24  {
25    this.req = req.ro
26  }
27}