Skip to content

doriantaylor/rb-http-negotiate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An implementation of Gisle Aas's (Perl) HTTP::Negotiate in Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published