VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-http-clientrequest-writableended-api/

⇱ Node.js http.ClientRequest.writableEnded API - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js http.ClientRequest.writableEnded API

Last Updated : 13 Oct, 2021

The http.ClientRequest.writableEnded is an inbuilt application programming interface of class ClientRequest within http module which is used to check if the request.end() has been called or not.

Syntax:

const request.writableEnded

Parameters: This API does not accept any argument as parameter.

Return Value : This method returns true if and only if the request.end() has been called.

Example 1:

Output:

👁 Image
Comment
Article Tags:

Explore