Extract header.
This commit is contained in:
parent
b77ee78afd
commit
8de753eec9
11 changed files with 108 additions and 35 deletions
|
@ -78,6 +78,9 @@ Curl::on = (event, callback) ->
|
|||
# (Buffer chunk) ->
|
||||
@on_write = (chunk) =>
|
||||
callback.call @, chunk
|
||||
when 'header'
|
||||
@on_header = (chunk) =>
|
||||
callback.call @, chunk
|
||||
when 'error'
|
||||
# (Error error) ->
|
||||
@on_error = (e) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue