BearStatic class
Object of each static.
Constructors
- BearStatic(String path, String dir)
- Constructor. [...]
Properties
- directory ↔ String
-
The directory to render, ( relative path, or absolute ) ( example: ../files )
read / write
- path ↔ String
-
The uri to match, (example: /statics, /files, /uploads/images, ...).
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
handle(
BearContext c) → void - Determine which function need to be called.
-
matches(
BearContext c) → bool - Check if path correspond to the BearContext.
-
serveDirectory(
Directory directory, BearContext c) → void -
List the content of the
directory
. -
serveFile(
File file, BearContext c) → void -
Send the
file
to the BearContext. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
@pragma("vm:entry-point"), inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited