- Inheritance
- Object
- Middleware
- StaticFilesMiddleware
Constructors
- StaticFilesMiddleware({String fileSystemPath: 'web', bool serveFilesOutsidePath: false, String defaultDocument, bool listDirectories: false})
Properties
- context → HttpContext
-
read-only, inherited
- defaultDocument → String
-
read-only
- fileSystemPath → String
-
read-only
- handler → Handler
-
read-only
- hashCode → int
-
Get a hash code for this object.…
read-only, inherited - listDirectories → bool
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - serveFilesOutsidePath → bool
-
read-only
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
abort(
[int statusCode = 500, body = 'Something went wrong']) → dynamic -
inherited
-
abortAuthenticationTimeout(
[body = 'Authentication Timeout']) → dynamic -
inherited
-
abortBadGateway(
[body = 'Bad Gateway']) → dynamic -
inherited
-
abortBadRequest(
[body = 'Bad Request']) → dynamic -
inherited
-
abortConflict(
[body = 'Conflict']) → dynamic -
inherited
-
abortExpectationFailed(
[body = 'Expectation Failed']) → dynamic -
inherited
-
abortFailedDependency(
[body = 'Failed Dependency']) → dynamic -
inherited
-
abortForbidden(
[body = 'Forbidden']) → dynamic -
inherited
-
abortGatewayTimeout(
[body = 'Gateway Timeout']) → dynamic -
inherited
-
abortGone(
[body = 'Gone']) → dynamic -
inherited
-
abortImATeapot(
[body = 'I\'m a Teapot']) → dynamic -
inherited
-
abortInsufficientStorage(
[body = 'Insufficient Storage']) → dynamic -
inherited
-
abortInternalServerError(
[body = 'Internal Server Error']) → dynamic -
inherited
-
abortLengthRequired(
[body = 'Length Required']) → dynamic -
inherited
-
abortLocked(
[body = 'Locked']) → dynamic -
inherited
-
abortLoopDetected(
[body = 'Loop Detected']) → dynamic -
inherited
-
abortMethodNotAllowed(
[body = 'Method Not Allowed']) → dynamic -
inherited
-
abortMisdirectedRequest(
[body = 'Misdirected Request']) → dynamic -
inherited
-
abortNetworkAuthenticationRequired(
[body = 'Network Authentication Required']) → dynamic -
inherited
-
abortNotAcceptable(
[body = 'Not Acceptable']) → dynamic -
inherited
-
abortNotExtended(
[body = 'Not Extended']) → dynamic -
inherited
-
abortNotFound(
[body = 'Not Found']) → dynamic -
inherited
-
abortNotImplemented(
[body = 'Not Implemented']) → dynamic -
inherited
-
abortPayloadTooLarge(
[body = 'Payload Too Large']) → dynamic -
inherited
-
abortPaymentRequired(
[body = 'Payment Required']) → dynamic -
inherited
-
abortPreconditionFailed(
[body = 'Precondition Failed']) → dynamic -
inherited
-
abortPreconditionRequired(
[body = 'Precondition Required']) → dynamic -
inherited
-
abortProxyAuthenticationRequired(
[body = 'Proxy Authentication Required']) → dynamic -
inherited
-
abortRangeNotSatisfiable(
[body = 'Range Not Satisfiable']) → dynamic -
inherited
-
abortRequestHeaderFieldsTooLarge(
[body = 'Request Header Fields Too Large']) → dynamic -
inherited
-
abortRequestTimeout(
[body = 'Request Timeout']) → dynamic -
inherited
-
inherited
-
abortTooManyRequests(
[body = 'Too Many Requests']) → dynamic -
inherited
-
inherited
-
abortUnprocessableEntity(
[body = 'Unprocessable Entity']) → dynamic -
inherited
-
abortUnsupportedMediaType(
[body = 'Unsupported Media Type']) → dynamic -
inherited
-
abortUpgradeRequired(
[body = 'Upgrade Required']) → dynamic -
inherited
-
abortURITooLong(
[body = 'URI Too Long']) → dynamic -
inherited
-
abortVariantAlsoNegotiates(
[body = 'Variant Also Negotiates']) → dynamic -
inherited
-
abortVersionNotSupported(
[body = 'HTTP Version Not Supported']) → dynamic -
inherited
-
call(
Handler innerHandler(Request request)) → Handler -
inherited
-
handle(
Request request) → Future<Response> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.…
inherited -
ok(
anything) → Response -
inherited
-
redirect(
String location) → Response -
inherited
-
redirectPermanently(
String location) → Response -
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited