forked from cujojs/rest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RFC 5988 compatible Link header parsing
The hateoas interceptor now parses Link response headers indexing them under response.links. Multiple Link headers are supported. The value of the Link header must match the grammar defined in rfc5988. If the grammar is incompatible, the link is skipped. http://tools.ietf.org/html/rfc5988 PEG.js (http://pegjs.majda.cz/) is used to generate the parser for the rfc defined grammer. The generated parser is wrapped in UMD and checked into the repo to avoid a run/build-time dependency on PEG.js.
- Loading branch information
Showing
9 changed files
with
1,387 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
parsers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(function (define) { | ||
define(function (require, exports, module) { | ||
|
||
// pegjs output goes here | ||
|
||
}); | ||
}( | ||
typeof define === 'function' && define.amd ? define : function (factory) { factory(require, module.exports, module); } | ||
)); |
Oops, something went wrong.