Skip to content

ElectronClientRequest.end method

ElectronClientRequest › end

Unofficial

Sends the last chunk of the request data. Subsequent write or end operations will not be allowed. The finish event is emitted just after the end operation.

Signature:

end(chunk?: Buffer | string, encoding?: string, callback?: () => void): void

Parameters:

ParameterTypeDescription
chunk?Buffer | stringThe final chunk of request body data.
encoding?stringThe encoding of chunk.
callback?() => voidInvoked after the chunk content has been delivered to the Chromium networking layer.

Returns: void