- Require Dart
^3.3.0
. - Update
package:mime
constraint to>=1.0.0 <3.0.0
.
- Added package topics to the pubspec file.
- Require Dart
2.17
.
- Require Dart
2.14
. - Update the pubspec
repository
field.
- Correctly handle
HEAD
requests. - Support HTTP range requests.
- Migrate to null safety.
- Change version constraint for the
shelf
dependency, so it accepts null-safe versions.
- Change version constraint for the
mime
dependency, so it accepts null-safe versions.
- Update SDK constraint to
>=2.3.0 <3.0.0
. - Allow
3.x
versions ofpackage:convert
. - Allow
4.x
versions ofpackage:http_parser
. - Use file
modified
dates instead ofchanged
for304 Not Modified
checks aschanged
returns creation dates on Windows.
-
Update SDK constraint to
>=2.0.0-dev.61 <3.0.0
. -
Directory listings are now sorted.
- Updated SDK version to 2.0.0-dev.17.0
- Require at least Dart SDK 1.24.0.
- Other internal changes e.g. removing dep on
scheduled_test
.
- Add a
createFileHandler()
function that serves a single static file.
- Add an optional
contentTypeResolver
argument tocreateStaticHandler
.
- Add support for "sniffing" the content of the file for the content-type via an optional
useHeaderBytesForContentType
argument oncreateStaticHandler
.
- Support
http_parser
3.0.0.
- Support
shelf
0.7.0.
- Support
http_parser
2.0.0.
- Support
http_parser
1.0.0.
- Added
listDirectories
argument tocreateStaticHandler
.
-
Bumped up minimum SDK to 1.7.0.
-
Added support for
shelf
0.6.0.
- Removed
Uri
format checks now that the core libraries is more strict.
-
Removed deprecated
getHandler
. -
Send correct mime type for default document.
- Updated development dependencies.
- Handle differences in resolution between
DateTime
and HTTP date format.
- Using latest
shelf
. Cleaned up test code by using new features.
- Added named (optional)
defaultDocument
argument tocreateStaticHandler
.
createStaticHandler
addedserveFilesOutsidePath
optional parameter.
- The preferred top-level method is now
createStaticHandler
.getHandler
is deprecated. - Set
content-type
header if the mime type of the requested file can be determined from the file extension. - Respond with
304-Not modified
againstIF-MODIFIED-SINCE
request header. - Better error when provided a non-existent
fileSystemPath
. - Added
example/example_server.dart
.
- Removed work around for issue.
- Correctly handle requests when not hosted at the root of a site.
- Send
last-modified
header. - Work around known issue with HTTP date formatting.