How to use the gofer function in gofer

To help you get started, we’ve selected a few gofer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github groupon / quinn / examples / hello-world / index.js View on Github external
.listen(async () => {
    const baseUrl = `${server.address().port}`;
    const gofer = new Gofer({ globalDefaults: { baseUrl } });

    try {
      await gofer.fetch('/foo');
    } catch (err) {


    await fetchAndPrint(gofer, '/bar');



A general purpose service client library

Latest version published 1 year ago

Package Health Score

55 / 100
Full package analysis

Popular gofer functions