25 questions for “HTTP & Web Servers”

Found in 1 field. Select a question to see its full answer.

Information Technology

25 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is content negotiation in HTTP, and how would a Node.js API implement it to return either JSON or XML based on a client's Accept header? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
2How would you implement Server-Sent Events (SSE) in Node.js to push real-time updates to a browser client over a single long-lived HTTP connection? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersAdvanced
3How would you create a basic HTTP server in Node.js using only the built-in node:http module, without any framework? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersBeginner
4What is the difference between an HTTP request header and a query parameter, and when should each be used to pass information to a Node.js server? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersBeginner
5What is the difference between HTTP/1.1 and HTTP/2, and how does Node.js support HTTP/2 via the node:http2 module? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
6What is HTTP keep-alive, and how does it improve performance for a Node.js server handling many requests from the same client? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
7What is the difference between HTTP methods GET, POST, PUT, PATCH, and DELETE, and what does 'idempotent' mean in this context? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
8What is the purpose of the HTTP OPTIONS method, and how does it relate to CORS preflight requests? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
9What is the difference between a 301 and a 302 HTTP redirect, and when should a Node.js application use each? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
10How would you implement HTTP/2 server push in Node.js, and why has server push become less commonly recommended over time? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersAdvanced