gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitac58c1e5ac58c1e5mission: HM56mreac58c1e5/plugins/fetch/tests/try_fetch.hl

510 B

  1. import { fetch, tryFetch } from 'hl:fetch'
  2. refused = tryFetch('http://127.0.0.1:32262/x')
  3. console.log(JSON.stringify(refused))
  4. slow = tryFetch('http://127.0.0.1:32261/x', { timeoutMs = 80 })
  5. console.log(JSON.stringify(slow))
  6. for (code of [200, 404]) {
  7. url = 'http://127.0.0.1:32260/' + code
  8. a = fetch(url)
  9. b = tryFetch(url)
  10. console.log(a.status == b.status, a.ok == b.ok, a.url == b.url, a.body == b.body, a.tag == b.tag, JSON.stringify(a.headers) == JSON.stringify(b.headers), b.text(), b.json().code)
  11. }

Branches

Latest commits

  • ac58c1e5mission: HM56mre
  • 58979c0clog: HM54 held for decision, DP65 startedmre
  • bb2ebc67log: #64 live, #53 mergedmre
  • 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
  • 2156cc7flog: HM54 reviewmre
  • 9fb82efclog: HM54 gap, fill continuesmre
  • b632eb8dlog: HM53 done, HM54 startedmre
  • ccb1a263tracker#53: bind editor drafts and use key event focus targetmre
  • 3356fcfclog: #52 blocked, HM53 startedmre
  • 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
  • 73010cc0HM52: report replace-navigation search draft regressionmre
  • 1742e92bstatus: DP64 and HM52 runningmre
  • 29ad5b58log: #64 merged, DP64 and HM52 startedmre
  • fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre
  • b2e2206dlog: #63 livemre
  • 5831e0e0log: HM64 donemre
  • 4042b923Flatten catalog membership rows into paired slotsmre
  • ea8a759elog: #61 #62 live, DP63 and HM64 startedmre
  • 40439456Merge hm63-searchtext: tracker#63 packed search textmre
  • b7e6b48ePack normalized search text behind numeric offsetsmre