Node.js HTTP Module Complete Reference
To make HTTP requests in Node.js, there is a built-in module HTTP in Node.js to transfer data over the HTTP. To use the HTTP server in the node, we need to require the HTTP module. The HTTP module creates an HTTP server that listens to server ports and gives a response back to the client.
The Complete List of HTTP modules are listed below:
1. Class: http.Agent
- Node.js new Agent() Method
- Node.js agent.createConnection() Method
- Node.js agent.maxSockets Method
- Node.js agent.maxFreeSockets Method
2. Class: http.ClientRequest
- Node.js http.ClientRequest.abort() Method
- Node.js http.ClientRequest.connection Property
- Node.js http.ClientRequest.protocol Method
- Node.js http.ClientRequest.aborted Property
- Node.js http.ClientRequest.path Property
- Node.js http.ClientRequest.setNoDelay() Method
- Node.js http.ClientRequest.setSocketKeepAlive() Method
- Node.js http.ClientRequest.removeHeader() Method
- Node.js http.ClientRequest.reusedSocket Property
- Node.js http.ClientRequest.setHeader() Method
- Node.js http.ClientRequest.setTimeout() Method
- Node.js http.ClientRequest.socket Property
3. Class: http.Server
- Node.js http.server.setTimeout() Method
- Node.js http.server.timeout Property
- Node.js http.server.close() Method
- Node.js http.server.headersTimeout Method
- Node.js http.server.maxHeadersCount Property
- Node.js http.server.listen() Method
- Node.js http.server.listening Property
- Node.js http.server.keepAliveTimeout Property
4. Class: http.ServerResponse
- Node.js http.ServerResponse.writableFinished Property
- Node.js http.ServerResponse.writableEnded Property
- Node.js http.ServerResponse.statusCode Property
- Node.js http.ServerResponse.headersSent Property
- Node.js http.ServerResponse.setTimeout() Method
- Node.js http.ServerResponse.socket Api
- Node.js http.ServerResponse.statusMessage Property
- Node.js http.ServerResponse.writeProcessing() Method
- Node.js http.ServerResponse.sendDate Method
- Node.js http.ServerResponse.getHeader() Method
- Node.js http.ServerResponse.end() Method
- Node.js http.ServerResponse.connection Method
5. Class: http.IncomingMessage
- Node.js http.IncomingMessage.url Method
- Node.js http.IncomingMessage.trailers Method
- Node.js http.IncomingMessage.statusMessage Method
- Node.js http.IncomingMessage.method Method
- Node.js http.IncomingMessage.rawHeaders Method
- Node.js http.IncomingMessage.statusCode Method
- Node.js http.IncomingMessage.rawTrailers Method
- Node.js http.IncomingMessage.aborted Method
- Node.js http.IncomingMessage.headers Method
- Node.js http.IncomingMessage.httpVersion Method
- Node.js http.IncomingMessage.complete Method
Please Login to comment...