ElectronClientRequest.end method
ElectronClientRequest › end
Unofficial
Sends the last chunk of the request data. Subsequent write or end operations will not be allowed. Thefinish event is emitted just after the end operation.Signature:
end(chunk?: Buffer | string, encoding?: string, callback?: () => void): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| chunk? | Buffer | string | The final chunk of request body data. |
| encoding? | string | The encoding of chunk. |
| callback? | () => void | Invoked after the chunk content has been delivered to the Chromium networking layer. |
Returns: void