Update README.
This commit is contained in:
parent
286b62cc2e
commit
44fb876123
2 changed files with 3 additions and 1 deletions
|
@ -115,6 +115,7 @@ Methods:
|
||||||
Curl setopt(optionName, optionValue)
|
Curl setopt(optionName, optionValue)
|
||||||
Curl perform()
|
Curl perform()
|
||||||
Curl on(eventType, callback)
|
Curl on(eventType, callback)
|
||||||
|
Mixed getinfo(infoName)
|
||||||
|
|
||||||
Events:
|
Events:
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,8 @@ curl.on('error', function(e) {
|
||||||
|
|
||||||
|
|
||||||
curl.on('end', function() {
|
curl.on('end', function() {
|
||||||
p('done.')
|
p('done.');
|
||||||
|
p('code: ' + curl.getinfo('RESPONSE_CODE'));
|
||||||
curl.close();
|
curl.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue