Skip to content

Simple library for HTTP Accept header parsing and ordering.

Notifications You must be signed in to change notification settings

brandur/http_accept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http_accept

Simple library for HTTP Accept header parsing and ordering.

HTTPAccept::Parser.new("text/*, text/html, text/html;level=1, */*").run.map(&:to_s)
=> ["text/html; level=1", "text/html", "text/*", "*/*"]

Testing

rake test

About

Simple library for HTTP Accept header parsing and ordering.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages