opal/opal-jquery — pull request #15 by svoboda-jan (2013-04-14 16:07:59+00:00)
Title: Add access to xhr object

This PR adds access to the ajax XHR object and a helper method to get a specific response header:

```ruby
HTTP.get("/some/url") do |response|
if response.ok?
alert response.get_header('x-header-name')
end
end
```

I needed this functionality for header based API pagination.