-
Notifications
You must be signed in to change notification settings - Fork 1
To Do: Electric Boogaloo
Jason Shinn edited this page Dec 15, 2013
·
8 revisions
- Allow passing in options, which are used or fed through to the respective parsers a. In particular, make explicit the default option to exclude the root tag when parsing XML, and perhaps change that default behavior
-
Write stringify, which will use the respective modules to create the correct format
a. Currently, it does no error handling for unsupported object formats (any methods or circular references). Need to add that.
b.XML stringifying is synchronous, too. Need to add async everything to stringify.
c. pass in options to stringify
d.test stringify Add async processing for JSON and querystrings- Replace JSON parsing so that we don't have to rely on try/catch if the string is not valid JSON
- Pluggable parsing modules: allow passing in an object that will perform parsing for this call, or named objects that will handle all parsing for their specified format, along with an optional callback for handling/usage if duck-typing is insufficient
- abstract methods into requester methods, so that we only include the elements we're actually using, and we can set options globally per script, rather than only per request
- Async is currently naive, which is partially a necessity due to working with existing processors that don't provide any way to chunk the data. If we're going to consider replacing those (or even writing our own) then we should consider how much data we can reasonably process in one turn of the event loop and chunk on that number