This repository has been archived by the owner. It is now read-only.
Rack middleware providing pass-through adding of Geo bits from forms and cookies
JavaScript Ruby Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs/javascripts
example
lib
public/javascripts
spec
test/javascripts
.gitignore
.rspec
.rvmrc
Gemfile
README.md
Rakefile
jenkins.sh
rack-geo.gemspec

README.md

Rack::Geo

Simple Rack middleware which processes incoming requests and adds, updates, and passes through as a Header, Geo-location information

                            ______________
GET / [no cookie]       -> | Geo IP       |
                           |              |
POST / [known params]   -> | Geo lookup   |
                           |              | -> Geo Header
GET / [with geo cookie] -> | Pass through |
                           |              |
             Geo Cookie <- |              |
                            --------------