module Typhoeus::Requests::Marshal

def marshal_dump

`on_complete` handler, since they cannot be marshalled.
Return the important data needed to serialize this Request, except the
def marshal_dump
  (instance_variables - ['@on_complete', :@on_complete]).map do |name|
    [name, instance_variable_get(name)]
  end
end

def marshal_load(attributes)

Load.
def marshal_load(attributes)
  attributes.each { |name, value| instance_variable_set(name, value) }
end