Merge pull request #129 from jonasfj/document-format-exception
Document that Request.ifModifiedSince throws FormatException
diff --git a/lib/src/request.dart b/lib/src/request.dart
index 169f8d4..1837342 100644
--- a/lib/src/request.dart
+++ b/lib/src/request.dart
@@ -68,6 +68,9 @@
///
/// This is parsed from the If-Modified-Since header in [headers]. If
/// [headers] doesn't have an If-Modified-Since header, this will be `null`.
+ ///
+ /// Throws [FormatException], if incoming HTTP request has an invalid
+ /// If-Modified-Since header.
DateTime get ifModifiedSince {
if (_ifModifiedSinceCache != null) return _ifModifiedSinceCache;
if (!headers.containsKey('if-modified-since')) return null;