/* * call-seq: * easy.on_redirect {|easy,code| ... } => <old handler;> * * Assign or remove the on_redirect handler for this Curl::Easy instance. * To remove a previously-supplied handler, call this method with no attached * block. * * The +on_redirect+ handler is called when request is finished with a * status of 30x */ static VALUE ruby_curl_easy_on_redirect_set(int argc, VALUE *argv, VALUE self) {