Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4499297
fetch.cjs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
653 B
Referenced Files
None
Subscribers
None
fetch.cjs
View Options
async function test_get() {
const { ip } = (await fetch('https://ifconfig.co/json')).json();
console.log(ip);
}
async function test_json() {
const test = (await fetch('https://themackabu.dev/test.json')).json();
console.log(test);
}
async function test_post() {
const response = await fetch('https://httpbingo.org/post', {
method: 'POST',
body: JSON.stringify({ runtime: 'ant' }),
headers: {
'Content-Type': 'application/json',
'User-Agent': 'ant/alpha (ant)'
}
});
const { json, headers } = response.json();
console.log(`${json}\n${headers}`);
}
void Promise.all([test_get(), test_post(), test_json()]);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 7:58 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
523899
Default Alt Text
fetch.cjs (653 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment