0.0
The project is in a healthy, maintained state
An implementation of Gisle Aas's HTTP::Negotiate
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.2
~> 13.0
~> 3.12
 Project Readme

HTTP::Negotiate

This is literally just a port of Gisle Aas's HTTP::Negotiate written in Perl, with a couple tiny changes to the interface. The negotiate method is accessible as either a class method or instance method, so you can take your pick of interface.

Usage

require 'http/negotiate'

# access it as an ordinary function
HTTP::Negotiate.negotiate request, variants

# ...or include it as an instance method
class Foo
  include HTTP::Negotiate
  
  # you now have access to #negotiate
end

Installation

Add this line to your application's Gemfile:

gem 'http-negotiate'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install http-negotiate

Contributing

Bug reports and pull requests are welcome at the Github repository.

Copyright & License

©2020 Dorian Taylor

This software is provided under the Apache License, 2.0.