Skip to content

Option to wait for the end of the request #8

Open

Description

@nt1m

Simplify:

request.on('data', chunk => {
  json += String(chunk);
});
request.on('end', () => {

by introducing an option.

Activity

  1. jankeromnes commented on Jun 5, 2017

    @jankeromnes
    Member

    Great idea! I agree that we should find a sensible way to refactor this request-reading boilerplate.

    I'm not sure whether it's better to address this in Self API directly, or in the code using it (e.g. Janitor).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions