Provide custom handlers for on_body and on_header

26 views
Skip to first unread message

Konrad Reiche

unread,
Aug 18, 2013, 6:28:44 PM8/18/13
to typh...@googlegroups.com
Hello everyone,

I wondered whether it is possible to define custom handlers for Typhoeus, similar to curb. In curb this works like this:

c = Curl::Easy.new("http://www.google.co.uk")

c.on_body { |data| print(data) }
c.on_header { |data| print(data) }

c.perform

I have skimmed through the source code, but couldn't find anything that hinted that, only the callbacks for on_success, on_failure, on_complete.

Best regards,
Konrad

Hans Hasselberg

unread,
Aug 19, 2013, 4:24:43 AM8/19/13
to typh...@googlegroups.com
Hi,

Typhoeus doesn't have something like that.


--
You received this message because you are subscribed to the Google Groups "Typhoeus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to typhoeus+u...@googlegroups.com.
To post to this group, send email to typh...@googlegroups.com.
Visit this group at http://groups.google.com/group/typhoeus.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages