How are you using it? Are you calling that function from anywhere else?
If you are using it directly in your game, make sure that you have
PrivateDependencyModuleName.AddRange(new string[] {"HTTP"});
in its .Build.cs file.
Also add HTTP_API to FHttpModule::Exec declaration if you’re calling that function from your game (which is not advised).