Add ruby-http-accept version 2.1.1 package. # 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.
21 lines
789 B
Text
21 lines
789 B
Text
@comment $NetBSD: PLIST,v 1.1 2020/01/19 08:23:06 taca Exp $
|
|
${GEM_HOME}/cache/${GEM_NAME}.gem
|
|
${GEM_LIBDIR}/.gitignore
|
|
${GEM_LIBDIR}/.rspec
|
|
${GEM_LIBDIR}/.travis.yml
|
|
${GEM_LIBDIR}/Gemfile
|
|
${GEM_LIBDIR}/README.md
|
|
${GEM_LIBDIR}/Rakefile
|
|
${GEM_LIBDIR}/http-accept.gemspec
|
|
${GEM_LIBDIR}/lib/http/accept.rb
|
|
${GEM_LIBDIR}/lib/http/accept/charsets.rb
|
|
${GEM_LIBDIR}/lib/http/accept/content_type.rb
|
|
${GEM_LIBDIR}/lib/http/accept/encodings.rb
|
|
${GEM_LIBDIR}/lib/http/accept/languages.rb
|
|
${GEM_LIBDIR}/lib/http/accept/media_types.rb
|
|
${GEM_LIBDIR}/lib/http/accept/media_types/map.rb
|
|
${GEM_LIBDIR}/lib/http/accept/parse_error.rb
|
|
${GEM_LIBDIR}/lib/http/accept/quoted_string.rb
|
|
${GEM_LIBDIR}/lib/http/accept/sort.rb
|
|
${GEM_LIBDIR}/lib/http/accept/version.rb
|
|
${GEM_HOME}/specifications/${GEM_NAME}.gemspec
|