Skip to content

Create a block-based setter for debug_callback functions#154

Open
klieth wants to merge 1 commit intotyphoeus:masterfrom
klieth:debug-callback
Open

Create a block-based setter for debug_callback functions#154
klieth wants to merge 1 commit intotyphoeus:masterfrom
klieth:debug-callback

Conversation

@klieth
Copy link
Copy Markdown

@klieth klieth commented Feb 3, 2019

This defines setters for debug_callback functions the same way as callback functions. This is useful for setting CURL_DEBUGFUNCTION

curl = Ethon::Easy.new(...)
curl.debugfunction do |_, _, _, _, _|
  ...
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant