diff --git a/README.md b/README.md index 28f83f3..a3ede47 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ $format = $negotiator->getBest($acceptHeader, $priorities); The `FormatNegotiator` class also provides a `getBestFormat()` method that returns the best format given an `Accept` header string and a set of -preferred/allowed formats: +preferred/allowed formats or mime types: ``` php getBestFormat($acceptHeader, $priorities); // $format = html ``` +#### Other Methods + +* `registerFormat($format, array $mimeTypes, $override = false)`: registers a new + format with its mime types; +* `getFormat($mimeType)`: returns the format for a given mime type, or null if +not found; +* `getMimeTypes(array $formats)`: returns an array of mime types for the given + set of formats; +* `normalizePriorities($priorities)`: ensures that any formats are converted to + mime types. + ### Language Negotiation Language negotiation is handled by the `LanguageNegotiator` class: