http


1. Create an HTTP Server

const http = require('http');

const server = http.createServer((req, res) => {
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  res.end('Hello World!');
});

server.listen(3000);

2. Send JSON Response

const http = require('http');

const server = http.createServer((req, res) => {
  res.writeHead(200, { 'Content-Type': 'application/json' });
  res.end(JSON.stringify({ message: 'Hello World!' }));
});

server.listen(3000);

3. Parse Request Body

4. Set Cookie

5. Get Cookie

6. Redirect

7. Simple Proxy Server

8. Simple Web Crawler

9. Make an HTTP GET Request

10. Make an HTTP POST Request

11. Make an HTTP PUT Request

12. Make an HTTP DELETE Request

13. Upload a File

14. Download a File

15. Use HTTPS

16. Use an HTTP Agent

17. Use an HTTP Proxy

18. Use a TLS/SSL Certificate

19. Use cURL in Node.js

20. Use request in Node.js

21. Use axios in Node.js

22. Use fetch API with Node.js

23. Use HTTP2 in Node.js

24. Use Quic Protocol in Node.js

25. Use HTTP/3 in Node.js

26. Use HTTP/2 Server Push in Node.js

27. Use CORS with Express.js

28. Use Socket.IO for Real-Time Communication

29. Use WebSockets with Express.js

30. Use HTTP Basic Authentication

31. Use OAuth 2.0 with Express.js

32. Use HTTP Routing with Express.js

33. Use HTTP Middleware with Express.js

34. Use HTTP Request Logging with Express.js

35. Use HTTP Error Handling with Express.js

36. Use HTTP Testing with Supertest