Require net/http explicitly and access top scope