io_adapter library
dart:io adapter for Relic web server.
This file re-exports relic_io for backwards compatibility.
Consider using package:relic_io/relic_io.dart directly.
Classes
- CacheBustingConfig
- Cache-busting for asset URLs that embed a content hash.
- FileInfo
- Cached file information including MIME type, file stats, and ETag.
- IOAdapter
-
An Adapter implementation for
dart:ioHttpServer. - IOAdapterRequest
- IORelicWebSocket
-
A
dart-io-based RelicWebSocket implementation. - StaticHandler
- A HandlerObject that serves static files from a directory or a single file.
Extensions
- CacheBustingFilenameExtension on CacheBustingConfig
- DatetimeExtension on DateTime
- Extensions on DateTime.
- HttpResponseExtension on HttpResponse
- Extension for io.HttpResponse to apply headers and body.
- RelicAppIOServeEx on RelicApp
Functions
-
bindHttpServer(
InternetAddress address, {int port = 0, SecurityContext? context, int backlog = 0, bool v6Only = false, }) → Future< HttpServer> -
Binds an HTTP server to the given
addressandport. -
getStaticFileInfo(
File file, {MimeTypeResolver? mimeResolver}) → Future< FileInfo> -
Public accessor for retrieving FileInfo for a given
file.
Typedefs
- CacheControlFactory = CacheControlHeader? Function(Request req, FileInfo fileInfo)