Skip to content

Commit

Permalink
Expose Headers, Request and Response to window
Browse files Browse the repository at this point in the history
  • Loading branch information
othree committed Nov 26, 2014
1 parent 830231e commit 4a44c0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@

Body.call(Response.prototype)

window.Headers = Headers;
window.Request = Request;
window.Response = Response;

window.fetch = function (url, options) {
return new Request(url, options).fetch()
}
Expand Down

0 comments on commit 4a44c0b

Please sign in to comment.