Registry / networking / http-accept

http-accept

JSON →
library2.2.1rbrubygemsunverified

Parse Accept and Accept-Language HTTP headers.

networking
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

require 'http-accept'

Parses an Accept header and retrieves the preferred media type.

require 'http-accept' media_types = HTTPAccept::MediaTypes.parse('text/html, application/json;q=0.9') puts media_types.first.mime_type
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
10 hits · last 30 days
claudebot
3
Resources