DVPreviewServer class final

The preview this process is serving.

Properties

access → DVPreviewAccess
The gate every response passes through.
final
connection → DVDatabaseConnection?
The connection DATABASE_URL resolved to, aimed at database; null when the deployment supplied no URL.
final
database → String
The preview's database, as its identity names it.
final
hashCode → int
The hash code for this object.
no setterinherited
queueNamespace → String
What every queue of this process is under.
final
runtime → DVPreviewRuntime
final
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
wrap(FutureOr<Response> handler(Request request)) → Future<Response> Function(Request request)
handler behind this preview's gate.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

current → DVPreviewServer?
The preview started in this process, or null.
no setter

Static Methods

reset() → void
Forgets the started preview and everything it installed. For tests.
start(Map<String, String> environment, {DVPreviewMembership? membership, String signInPath = '/sign-in', Set<String> openPaths = const <String>{}, void onFinding(DVPreviewFinding finding)?}) → DVPreviewServer?
Installs the preview environment describes, or does nothing when it describes none.