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:io HttpServer.
IOAdapterRequest
IORelicWebSocket
A dart-io-based RelicWebSocket implementation.
StaticHandler
A HandlerObject that serves static files from a directory or a single file.

Functions

bindHttpServer(InternetAddress address, {int port = 0, SecurityContext? context, int backlog = 0, bool v6Only = false, bool shared = false}) Future<HttpServer>
Binds an HTTP server to the given address and port.
getStaticFileInfo(File file, {MimeTypeResolver? mimeResolver}) Future<FileInfo>
Public accessor for retrieving FileInfo for a given file.

Typedefs

CacheControlFactory = CacheControlHeader? Function(Request req, FileInfo fileInfo)