DVPageStreaming enum
How a rendered page goes out: dartvel.web.server.streaming.
Values
- off → const DVPageStreaming
-
One buffered response, sent when the page is done.
false. - head → const DVPageStreaming
-
The head as its own write, then the body -- both after the data has resolved, because the head carries the data's title.
true. - shell → const DVPageStreaming
-
The shell's head at once, before the data: every preload, the splash, the bootstrap, so the browser downloads while the server queries. The title and the rest of the head the data writes follow when the data does, then the body.
shell.What it costs is the status code. 200 is on the wire before the data says whether the record exists or may be seen, so a missing, hidden or unauthorized record is answered as a page marked
<meta name="robots" content="noindex">with none of the data in it -- a soft 404 -- and a resolver that throws gets the route's own page, marked the same way. A route the router guards is never sent early: it waits for the data and answers with its real status, asheaddoes, because a signed-out request to a guarded page must look exactly like one to a page that does not exist.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
DVPageStreaming> - A constant List of the values in this enum, in order of their declaration.