$query->accept(['content_type'])
query
Returns a list of media types that the browser accepts.
If specified, returns instead the browser's preference for the specified content type, between 0.0 and 1.0.
Copyright © 2001 O'Reilly & Associates. All rights reserved.