Explain Http agreement

 

HTTP is a protocol belonging to the object-oriented application layer, due to its simple, fast way for distributed hypermedia information system.

The main characteristics of the HTTP protocol can be summarized as follows:

1. Supports client / server model.

2. simple and fast: a customer service request to the server, instead of sending the request method and path. Request method commonly used GET, HEAD, POST. Each method provides a different type of client contacts the server. Due to the simple HTTP protocol, HTTP server makes the program a small scale, so the communication is very fast.

3. Flexible: HTTP allows the transmission of any type of data object. It is the type of transmission being marked by Content-Type.

4. No connection: Meaning No limitation is attached only one request per connection. After the server processes client requests and receives the customer's response, i.e., disconnected. In this way it can save transmission time.

5. stateless: HTTP protocol is stateless protocol. No state is no protocol for transaction processing and memory. If the lack of state means that the subsequent processing required in front of the information, it must be retransmitted, which may result in the amount of data transmitted for each connection is increased. On the other hand, when it does not require previous information in response to a faster server.

 

Guess you like

Origin www.cnblogs.com/sea-stream/p/11244657.html