ResponseHolder class
Methods
-
add(List<int> data)
→ ResponseHolder
-
-
addStream(Stream<List<int>> stream)
→ Future<ResponseHolder>
-
-
badRequest(Object? object)
→ ResponseHolder
-
-
close({String? closeMessage})
→ Future<ResponseHolder>
-
-
forbidden(Object? object)
→ ResponseHolder
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notFound(Object? object)
→ ResponseHolder
-
-
serveFolders(List<FolderHost> folders, String requestedEntityPath, {bool allowServingFoldersContent = false, bool allowViewingEntityPath = false, bool viewTextBasedFiles = true, bool autoViewIndexTextFiles = true, List<String> autoViewIndexFilesNames = const ['index.html', 'index.htm']})
→ FutureOr<ResponseHolder>
-
-
streamMedia(String filePath)
→ Future<ResponseHolder>
-
-
success(Object? object)
→ ResponseHolder
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
unauthorized(Object? object)
→ ResponseHolder
-
-
write(Object? object, {int? code})
→ ResponseHolder
-
-
writeBinary(List<int> bytes)
→ ResponseHolder
-
-
writeFile(String filePath)
→ Future<ResponseHolder>
-
-
writeHtml(String html, {int? code})
→ ResponseHolder
-
-
writeJson(dynamic obj, {int? code})
→ ResponseHolder
-