service/tests/test.js

7 lines
175 B
JavaScript

import http from "apigo.cc/gojs/http"
let h2c = http.newH2C()
function main(args) {
let r = h2c.get('http://' + args[0] + '/echo?name=' + args[1])
return r.string()
}