This repository was archived by the owner on Nov 6, 2022. It is now read-only.
Enhance parsertrace to use an URL as input#162
Closed
vincentbernat wants to merge 5 commits intonodejs:masterfrom
Closed
Enhance parsertrace to use an URL as input#162vincentbernat wants to merge 5 commits intonodejs:masterfrom
vincentbernat wants to merge 5 commits intonodejs:masterfrom
Conversation
added 5 commits
September 2, 2013 15:49
One hook is executed right before receiving a new chunk. The second one is executed just after. parsertrace.c is updated to use those hooks for display.
Instead, we rely on the possibility to feed the parser incrementally. Therefore, the `on_body` event is triggered more often.
Example:
(printf 'GET /watch?v=3E3cL8uWQbw HTTP/1.1\nHost: www.youtube.com\n\n' ; sleep 1) | \
unbuffer -p nc www.youtube.com 80 | \
./parsertrace -r -
Instead of providing a file, an HTTP URL can be provided. A simple HTTP/1.1 request will be done and the result will be parsed incrementally by the parser.
Member
|
Closing due to lack of activity. If this is something we still want to pursue, the PR needs to be rebased and updated to current master |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first commit is related to another pull request introducing hooks to notify chunk beginning and completion. I will rebase the request once pull request #159 is merged.