Skip to content

Advanced respond options with variables #16

@phenomnomnominal

Description

@phenomnomnominal

if I do something like

var data = require('foo.json');
whenGet( ... ).respond(function () {
    return [200, data, { some: 'header' }];
});

This is stringified and send to the client, where data obviously doesn't exist.
I'm going to work on a PR to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions