Last active
March 6, 2019 23:57
-
-
Save evert/3d21a289b6b518bbdb7279249e887a88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Ketting = require('ketting').default; | |
const k = new Ketting('https://hal-browser.evertpot.com/games'); | |
const main = async () => { | |
const games = k.go(); | |
console.log(await games.get()); | |
// GOAL: Figure out how to add Prefer-Push: console to the FIRST request | |
const con = await games.follow('item').follow('console'); | |
console.log(await con.get()); | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment