DVWebServerSettings class
dartvel.web.server in pubspec.yaml.
Constructors
- DVWebServerSettings({DVPageDataMode pageDataMode = DVPageDataMode.await_, Duration cacheTtl = const Duration(seconds: 60), Duration? staleFor, bool streaming = false, DVPageStreaming? streamingMode, String? cache})
-
const
Properties
- cache → String?
-
Where a cache lives when it is shared --
redis-- and null for this process's memory.final - cacheTtl → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pageDataMode → DVPageDataMode
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staleFor → Duration
-
How long past the ttl a kept page may still be served while it is
refreshed behind the response. The ttl again unless the declaration
says otherwise: a stale window of nothing makes
stale-while-revalidate mean the same as awaiting.
no setter
- streaming → bool
-
Whether a page goes out in more than one write, whichever way.
no setter
- streamingMode → DVPageStreaming
-
How a page goes out; see DVPageStreaming.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
Object? section) → DVWebServerSettings