halldyll-robots
RFC 9309 compliant robots.txt parser and checker.
Features
- RFC 9309 Compliance: Full support for the robots.txt standard
- Unavailable vs Unreachable: Proper handling per RFC (4xx = allow, 5xx = deny)
- Safe Mode: Optional stricter handling of 401/403 as deny
- Conditional GET: ETag/Last-Modified support for bandwidth savings
- Request-rate: Non-standard but common directive support
- Caching: In-memory cache with optional file persistence
- Pattern Matching: Wildcards (*), end anchors ($), percent-encoding
- UTF-8 BOM: Automatic stripping of BOM prefix
- Observability: Detailed logging and statistics with min/max/avg metrics
Example
use ;
use Url;
async