Syntax for sendHttpGetRequest in OH3 ECMA script?

One line in DSL is now 15 lines of code? There must be something I’m missing here?