When you enter a site, you must see that an URL in the form of http or https is automatically added to the first URL of that site.
The information that is transmitted on the Internet uses a standard protocol called http or Hyper Text Transfer Protocol, which means secure hypertext transfer protocol.
To put it simply, http is a kind of rule by which the exchange of information between the client and the server is based.
The method is that clients (who are usually browsers) send an http request to the servers which are the same websites.
The server receives the request, and then begins to process the request using the software it has.
It then sends a response to the request via the http protocol to the same client that sent the request. He will receive an answer, this is how the process ends.
https does exactly the same thing, leading to encryption, my goal is to increase the security of your site.