WyriHaximus ยท GitHub

Conversation

@legionth

Copy link Copy Markdown

Contributor

Currently only requests with a body will emit the end event ( #116 and #129).

This ensures that a completed request without a body (e.g. GET-Request) will emit an end event.

@WyriHaximus

WyriHaximus

clue

$request->emit('end');
$request->close();
return;
}

Copy link Copy Markdown

Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Emitting events on another instance should generally be avoided. Also, this looks somewhat similar to the code below, perhaps this can/should be unified?

@legionth

@legionth

Copy link Copy Markdown

Contributor Author

Ping @clue have a look at this new approach.

clue

clue approved these changes Mar 2, 2017

@clue clue left a comment

Copy link Copy Markdown

Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM! ๐Ÿ‘

jsor

jsor approved these changes Mar 3, 2017

@WyriHaximus

@clue clue mentioned this pull request

Mar 7, 2017

Closed

Read the original on github.com โ†—