{"id":81361,"library":"http-accept","title":"HTTP Accept","description":"Parse Accept and Accept-Language HTTP headers.","status":"active","version":"2.2.1","language":"ruby","source_language":null,"source_url":"https://github.com/ioquatix/http-accept","tags":["http","header","parsing","accept"],"install":[{"cmd":"gem install http-accept","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'http-accept', '~> 2.2.1'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"HTTPAccept","correct":"require 'http-accept'"}],"quickstart":{"code":"require 'http-accept'\nmedia_types = HTTPAccept::MediaTypes.parse('text/html, application/json;q=0.9')\nputs media_types.first.mime_type","lang":"ruby","description":"Parses an Accept header and retrieves the preferred media type."},"warnings":[],"env_vars":null,"search_vec":"'accept':2,4,7,14 'accept-languag':6 'header':10,12 'http':1,9,11 'languag':8 'pars':3,13","created_at":"2026-06-19T04:46:44.084925+00:00","updated_at":"2026-06-19T04:46:44.084925+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ioquatix/http-accept","github":"https://github.com/ioquatix/http-accept","docs":"http://www.rubydoc.info/gems/http-accept/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}