Skip to content

Commit

Permalink
[doc] Updated README.md to include agent.next()
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Sep 7, 2010
1 parent ebc1122 commit c71e951
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ There are several way to use http-agent:
// Simple usage: Just output the raw
// HTML returned from each request
sys.puts(agent.body);
agent.next();
});

agent.addListener('stop', function (e, agent) {
Expand Down Expand Up @@ -70,6 +71,7 @@ Since http-agent is based on top of request, it can take a set of JSON objects f
// Simple usage: Just output the raw
// HTML returned from each request
sys.puts(agent.body);
agent.next();
});

agent.addListener('stop', function (e, agent) {
Expand Down Expand Up @@ -99,6 +101,7 @@ Each time an instance of http-agent raises the 'next' event the agent is passed
// Simple usage: Just output the raw
// HTML returned from each request
sys.puts(agent.body);
agent.next();
});

agent.addListener('stop', function (e, agent) {
Expand Down

0 comments on commit c71e951

Please sign in to comment.