www/ruby-http-accept - The NetBSD Packages Collection

Parse Accept and Accept-Language HTTP headers

# HTTP::Accept

Provides a robust set of parsers for dealing with HTTP Accept,
Accept-Language, Accept-Encoding, Accept-Charset headers.

## Motivation

I've been developing some tools for building RESTful endpoints and part of
that involved versioning.  After reviewing the options, I settled on using
the Accept: application/json;version=1 method as outlined here.

The version=1 part of the media-type is a parameter as defined by RFC7231
Section 3.1.1.1.  After reviewing several existing different options for
parsing the Accept: header, I noticed a disturbing trend: header.split(',').
Because parameters may contain quoted strings which contain commas, this is
clearly not an appropriate way to parse the header.

I am concerned about correctness, security and performance.  As such, I
implemented this gem to provide a simple high level interface for both
parsing and correctly interpreting these headers.

Build dependencies

pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

lang/ruby32-base

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64ruby31-http-accept-2.2.1.tgz
NetBSD 10.0aarch64ruby32-http-accept-2.2.1.tgz
NetBSD 10.0aarch64ruby33-http-accept-2.2.1.tgz
NetBSD 10.0aarch64ruby31-http-accept-2.2.0.tgz
NetBSD 10.0aarch64ruby32-http-accept-2.2.0.tgz
NetBSD 10.0aarch64ruby31-http-accept-2.2.1.tgz
NetBSD 10.0aarch64ruby32-http-accept-2.2.1.tgz
NetBSD 10.0aarch64ruby33-http-accept-2.2.1.tgz
NetBSD 10.0aarch64ebruby31-http-accept-2.2.1.tgz
NetBSD 10.0aarch64ebruby31-http-accept-2.2.1.tgz
NetBSD 10.0earmv4ruby31-http-accept-2.2.1.tgz
NetBSD 10.0earmv4ruby31-http-accept-2.2.1.tgz
NetBSD 10.0earmv6hfruby31-http-accept-2.2.1.tgz
NetBSD 10.0earmv6hfruby32-http-accept-2.2.1.tgz
NetBSD 10.0earmv6hfruby33-http-accept-2.2.1.tgz
NetBSD 10.0earmv6hfruby31-http-accept-2.2.1.tgz
NetBSD 10.0earmv6hfruby32-http-accept-2.2.1.tgz
NetBSD 10.0earmv6hfruby33-http-accept-2.2.1.tgz
NetBSD 10.0earmv6hfruby31-http-accept-2.2.1.tgz
NetBSD 10.0earmv6hfruby32-http-accept-2.2.1.tgz
NetBSD 10.0earmv6hfruby33-http-accept-2.2.1.tgz
NetBSD 10.0earmv7hfruby31-http-accept-2.2.1.tgz
NetBSD 10.0earmv7hfruby32-http-accept-2.2.1.tgz
NetBSD 10.0earmv7hfruby33-http-accept-2.2.1.tgz
NetBSD 10.0earmv7hfruby31-http-accept-2.2.1.tgz
NetBSD 10.0earmv7hfruby32-http-accept-2.2.1.tgz
NetBSD 10.0earmv7hfruby33-http-accept-2.2.1.tgz
NetBSD 10.0earmv7hfruby31-http-accept-2.2.1.tgz
NetBSD 10.0earmv7hfruby32-http-accept-2.2.1.tgz
NetBSD 10.0earmv7hfruby33-http-accept-2.2.1.tgz
NetBSD 10.0i386ruby31-http-accept-2.2.1.tgz
NetBSD 10.0i386ruby32-http-accept-2.2.1.tgz
NetBSD 10.0i386ruby33-http-accept-2.2.1.tgz
NetBSD 10.0i386ruby31-http-accept-2.2.0.tgz
NetBSD 10.0i386ruby32-http-accept-2.2.0.tgz
NetBSD 10.0i386ruby31-http-accept-2.2.1.tgz
NetBSD 10.0i386ruby32-http-accept-2.2.1.tgz
NetBSD 10.0i386ruby33-http-accept-2.2.1.tgz
NetBSD 10.0i386ruby31-http-accept-2.2.1.tgz
NetBSD 10.0i386ruby32-http-accept-2.2.1.tgz
NetBSD 10.0i386ruby33-http-accept-2.2.1.tgz
NetBSD 10.0mips64ebruby31-http-accept-2.2.1.tgz
NetBSD 10.0mips64ebruby32-http-accept-2.2.1.tgz
NetBSD 10.0mips64ebruby33-http-accept-2.2.1.tgz
NetBSD 10.0mips64ebruby31-http-accept-2.2.1.tgz
NetBSD 10.0mips64ebruby32-http-accept-2.2.1.tgz
NetBSD 10.0mips64ebruby33-http-accept-2.2.1.tgz
NetBSD 10.0powerpcruby26-http-accept-2.2.0.tgz
NetBSD 10.0powerpcruby30-http-accept-2.2.0.tgz
NetBSD 10.0powerpcruby31-http-accept-2.2.0.tgz
NetBSD 10.0powerpcruby32-http-accept-2.2.0.tgz
NetBSD 10.0powerpcruby26-http-accept-2.2.0.tgz
NetBSD 10.0powerpcruby30-http-accept-2.2.0.tgz
NetBSD 10.0powerpcruby31-http-accept-2.2.0.tgz
NetBSD 10.0powerpcruby32-http-accept-2.2.0.tgz
NetBSD 10.0powerpcruby31-http-accept-2.2.1.tgz
NetBSD 10.0powerpcruby32-http-accept-2.2.1.tgz
NetBSD 10.0powerpcruby33-http-accept-2.2.1.tgz
NetBSD 10.0sparc64ruby31-http-accept-2.2.1.tgz
NetBSD 10.0sparc64ruby32-http-accept-2.2.1.tgz
NetBSD 10.0sparc64ruby33-http-accept-2.2.1.tgz
NetBSD 10.0sparc64ruby31-http-accept-2.2.1.tgz
NetBSD 10.0sparc64ruby32-http-accept-2.2.1.tgz
NetBSD 10.0sparc64ruby33-http-accept-2.2.1.tgz
NetBSD 10.0sparcruby32-http-accept-2.2.1.tgz
NetBSD 10.0sparcruby32-http-accept-2.2.1.tgz
NetBSD 10.0vaxruby31-http-accept-2.2.1.tgz
NetBSD 10.0vaxruby31-http-accept-2.2.1.tgz
NetBSD 10.0vaxruby31-http-accept-2.2.1.tgz
NetBSD 10.0x86_64ruby31-http-accept-2.2.1.tgz
NetBSD 10.0x86_64ruby32-http-accept-2.2.1.tgz
NetBSD 10.0x86_64ruby33-http-accept-2.2.1.tgz
NetBSD 10.0x86_64ruby31-http-accept-2.2.0.tgz
NetBSD 10.0x86_64ruby32-http-accept-2.2.0.tgz
NetBSD 10.0x86_64ruby31-http-accept-2.2.1.tgz
NetBSD 10.0x86_64ruby32-http-accept-2.2.1.tgz
NetBSD 10.0x86_64ruby33-http-accept-2.2.1.tgz
NetBSD 10.0x86_64ruby31-http-accept-2.2.1.tgz
NetBSD 10.0x86_64ruby32-http-accept-2.2.1.tgz
NetBSD 10.0x86_64ruby33-http-accept-2.2.1.tgz
NetBSD 9.0aarch64ruby31-http-accept-2.2.1.tgz
NetBSD 9.0aarch64ruby31-http-accept-2.2.0.tgz
NetBSD 9.0aarch64ruby32-http-accept-2.2.0.tgz
NetBSD 9.0aarch64ruby31-http-accept-2.2.1.tgz
NetBSD 9.0earmv4ruby31-http-accept-2.2.1.tgz
NetBSD 9.0earmv6hfruby31-http-accept-2.2.1.tgz
NetBSD 9.0earmv6hfruby32-http-accept-2.2.1.tgz
NetBSD 9.0earmv6hfruby33-http-accept-2.2.1.tgz
NetBSD 9.0earmv6hfruby31-http-accept-2.2.1.tgz
NetBSD 9.0earmv6hfruby32-http-accept-2.2.1.tgz
NetBSD 9.0earmv6hfruby33-http-accept-2.2.1.tgz
NetBSD 9.0earmv6hfruby31-http-accept-2.2.1.tgz
NetBSD 9.0earmv6hfruby32-http-accept-2.2.1.tgz
NetBSD 9.0earmv6hfruby33-http-accept-2.2.1.tgz
NetBSD 9.0earmv7hfruby31-http-accept-2.2.1.tgz
NetBSD 9.0earmv7hfruby32-http-accept-2.2.1.tgz
NetBSD 9.0earmv7hfruby33-http-accept-2.2.1.tgz
NetBSD 9.0earmv7hfruby31-http-accept-2.2.1.tgz
NetBSD 9.0earmv7hfruby32-http-accept-2.2.1.tgz
NetBSD 9.0earmv7hfruby33-http-accept-2.2.1.tgz
NetBSD 9.0earmv7hfruby31-http-accept-2.2.1.tgz
NetBSD 9.0earmv7hfruby32-http-accept-2.2.1.tgz
NetBSD 9.0earmv7hfruby33-http-accept-2.2.1.tgz
NetBSD 9.0i386ruby31-http-accept-2.2.1.tgz
NetBSD 9.0i386ruby32-http-accept-2.2.1.tgz
NetBSD 9.0i386ruby33-http-accept-2.2.1.tgz
NetBSD 9.0i386ruby31-http-accept-2.2.0.tgz
NetBSD 9.0i386ruby32-http-accept-2.2.0.tgz
NetBSD 9.0i386ruby31-http-accept-2.2.1.tgz
NetBSD 9.0i386ruby32-http-accept-2.2.1.tgz
NetBSD 9.0i386ruby33-http-accept-2.2.1.tgz
NetBSD 9.0i386ruby31-http-accept-2.2.1.tgz
NetBSD 9.0i386ruby32-http-accept-2.2.1.tgz
NetBSD 9.0i386ruby33-http-accept-2.2.1.tgz
NetBSD 9.0m68kruby26-http-accept-2.2.0.tgz
NetBSD 9.0m68kruby30-http-accept-2.2.0.tgz
NetBSD 9.0m68kruby31-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby26-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby27-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby30-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby31-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby32-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby26-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby27-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby30-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby31-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby32-http-accept-2.2.0.tgz
NetBSD 9.0powerpcruby31-http-accept-2.2.1.tgz
NetBSD 9.0powerpcruby32-http-accept-2.2.1.tgz
NetBSD 9.0powerpcruby33-http-accept-2.2.1.tgz
NetBSD 9.0sparc64ruby31-http-accept-2.2.1.tgz
NetBSD 9.0x86_64ruby31-http-accept-2.2.1.tgz
NetBSD 9.0x86_64ruby32-http-accept-2.2.1.tgz
NetBSD 9.0x86_64ruby33-http-accept-2.2.1.tgz
NetBSD 9.0x86_64ruby31-http-accept-2.2.0.tgz
NetBSD 9.0x86_64ruby32-http-accept-2.2.0.tgz
NetBSD 9.0x86_64ruby31-http-accept-2.2.1.tgz
NetBSD 9.0x86_64ruby32-http-accept-2.2.1.tgz
NetBSD 9.0x86_64ruby33-http-accept-2.2.1.tgz
NetBSD 9.0x86_64ruby31-http-accept-2.2.1.tgz
NetBSD 9.0x86_64ruby32-http-accept-2.2.1.tgz
NetBSD 9.0x86_64ruby33-http-accept-2.2.1.tgz
NetBSD 9.3x86_64ruby31-http-accept-2.2.1.tgz
NetBSD 9.3x86_64ruby32-http-accept-2.2.1.tgz
NetBSD 9.3x86_64ruby33-http-accept-2.2.1.tgz
NetBSD 9.3x86_64ruby31-http-accept-2.2.1.tgz
NetBSD 9.3x86_64ruby32-http-accept-2.2.1.tgz
NetBSD 9.3x86_64ruby33-http-accept-2.2.1.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.