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/cwrappers

Runtime dependencies

lang/ruby27-base

Binary packages

OSArchitectureVersion
NetBSD 8.0earmv7hfruby26-http-accept-2.1.1.tgz
NetBSD 8.0earmv7hfruby27-http-accept-2.1.1.tgz
NetBSD 8.0earmv7hfruby25-http-accept-2.1.1.tgz
NetBSD 8.0earmv7hfruby26-http-accept-2.1.1.tgz
NetBSD 8.0earmv7hfruby27-http-accept-2.1.1.tgz
NetBSD 8.0earmv7hfruby26-http-accept-2.1.1.tgz
NetBSD 8.0earmv7hfruby27-http-accept-2.1.1.tgz
NetBSD 8.0i386ruby25-http-accept-2.1.1.tgz
NetBSD 8.0i386ruby26-http-accept-2.1.1.tgz
NetBSD 8.0i386ruby27-http-accept-2.1.1.tgz
NetBSD 8.0i386ruby26-http-accept-2.1.1.tgz
NetBSD 8.0i386ruby27-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby24-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby25-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby26-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby27-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby24-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby25-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby26-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby27-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby24-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby25-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby26-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby27-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby24-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby25-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby26-http-accept-2.1.1.tgz
NetBSD 8.0powerpcruby27-http-accept-2.1.1.tgz
NetBSD 8.0x86_64ruby25-http-accept-2.1.1.tgz
NetBSD 8.0x86_64ruby26-http-accept-2.1.1.tgz
NetBSD 8.0x86_64ruby27-http-accept-2.1.1.tgz
NetBSD 8.0x86_64ruby26-http-accept-2.1.1.tgz
NetBSD 8.0x86_64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby25-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0aarch64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0alpharuby25-http-accept-2.1.1.tgz
NetBSD 9.0alpharuby26-http-accept-2.1.1.tgz
NetBSD 9.0alpharuby27-http-accept-2.1.1.tgz
NetBSD 9.0alpharuby25-http-accept-2.1.1.tgz
NetBSD 9.0alpharuby26-http-accept-2.1.1.tgz
NetBSD 9.0alpharuby27-http-accept-2.1.1.tgz
NetBSD 9.0alpharuby25-http-accept-2.1.1.tgz
NetBSD 9.0alpharuby26-http-accept-2.1.1.tgz
NetBSD 9.0alpharuby27-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby26-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby27-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby30-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby25-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby26-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby27-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby30-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby26-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby27-http-accept-2.1.1.tgz
NetBSD 9.0earmv6hfruby30-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby26-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby27-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby30-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby25-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby26-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby27-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby30-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby26-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby27-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby30-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby26-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby27-http-accept-2.1.1.tgz
NetBSD 9.0earmv7hfruby30-http-accept-2.1.1.tgz
NetBSD 9.0i386ruby25-http-accept-2.1.1.tgz
NetBSD 9.0i386ruby26-http-accept-2.1.1.tgz
NetBSD 9.0i386ruby27-http-accept-2.1.1.tgz
NetBSD 9.0i386ruby30-http-accept-2.1.1.tgz
NetBSD 9.0i386ruby26-http-accept-2.1.1.tgz
NetBSD 9.0i386ruby27-http-accept-2.1.1.tgz
NetBSD 9.0i386ruby30-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby25-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby26-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby27-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby30-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby25-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby26-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby27-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby25-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby26-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby27-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby25-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby26-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby27-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby30-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby25-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby26-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby27-http-accept-2.1.1.tgz
NetBSD 9.0mips64ebruby30-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby24-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby25-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby26-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby27-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby30-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby24-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby25-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby26-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby27-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby30-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby24-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby25-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby26-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby27-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby30-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby24-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby25-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby26-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby27-http-accept-2.1.1.tgz
NetBSD 9.0powerpcruby30-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby25-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby25-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby25-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0sparc64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby25-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby27-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby25-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby27-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby25-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby27-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby25-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby27-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby25-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby27-http-accept-2.1.1.tgz
NetBSD 9.0sparcruby30-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby25-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby30-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby26-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby27-http-accept-2.1.1.tgz
NetBSD 9.0x86_64ruby30-http-accept-2.1.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.