function send(data, to="") {
const opt = {
method: "POST",
credentials: "same-origin",
body: data,
headers: {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
}
};
const res = await fetch(`http://example.com/${to}`, opt);
return await.json();
}
```