http/request: use instance_exec if arity is 0
socket: use instance_exec if arity is 0