FakeIncomingMessage

engine/isolation/fake_http~ FakeIncomingMessage

Incoming message shim. Buffers a body and emits data/end when listeners attach so modules/gingee body parsing still works.

Constructor

new FakeIncomingMessage(opts)

Parameters:
Name Type Description
opts object
Properties
Name Type Attributes Description
method string
url string
headers object
body Buffer <optional>