Repaso
EspaƱol
Backend & APIsFoundationsAPI-52

In an HTTP conversation, who sends the first message?

Options

  1. The server, with a welcome message
  2. The client, with a request (Correct option)
  3. Both of them at the same time
  4. The database, with a query

Answer

The client, with a request

Why

HTTP always works as request then response.

The client (usually a browser or app) sends the request, and the server answers. A server does not normally start sending to a client by itself.

For live updates (chat, notifications) there are other mechanisms such as WebSockets.

Remember

Client asks first, server answers.

Key terms

Practice this question in Repaso