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?: any, encoding?: string | undefined, callback?: (() => void) | undefined): void

Parameters:

ParameterTypeDescription
chunk?anyThe final chunk of request body data.
encoding?string | undefinedThe encoding of chunk.
callback?(() => void) | undefinedInvoked after the chunk content has been delivered to the Chromium networking layer.

Returns: void