Page
struct PageWhat a handler answers: a page, its JSON, a fragment or a file, or where to go.
Implements Movable
- Fields
status: Intjson: Stringhtml: Stringcontent_type: String: Set for what isn't a page or its JSON (a fragment, a file):htmlis sent as this, whatever was asked for.location: String: Set for an action that was done: a browser is sent there with 303, and a script getsjsonwith 200.poll_every: Int: Set for a live fragment: the seconds until the page asks again, sent asX-Poll-Every(_POLL).here: String: Where a login link on it comes back to; empty for its own URL.headers: List[Tuple[String, String]]: More headers to send: a cookie,WWW-Authenticate.
__init__
def __init__(out self, status: Int, var json: String, var html: String, content_type: String = "", location: String = "", poll_every: Int = Int(0))