The main features of HTTP
Brief
HTTP is an application layer protocol, an application layer protocol based on a stateless request response module.
Often based on the TCP connection;
The vast majority of web development is a web application over HTTP building
Feature
(1) supports the client / server model
HTTP to work on client server architecture, url browser as a client to the server and send a request via the web server,
the web server sends the response information to the client according to the received request.
(2) simple and fast
When a client request to the server, simply transfer request method and path, there is a request method post, get and so on, each method provides client and server
Different types of connections. Due to the simple HTTP protocol, HTTP service program enables small and fast communication.
(3) Flexible
HTTP allows the transmission of any type of data object.
(4) No connection
Limiting each connection can only process a request, the server requests the client processed after the client receives the response and disconnected,
In this way you can save time. HTTP1.1 after defaults keepline long connection, the server to wait for some time before disconnect
To ensure connectivity features. But you always have to think HTTP request connection will be closed at the end, this is the nature of HTTP.
The underlying implement is closed after the connections will not change this characteristic, long connection can be understood as a lower layer of the upper transparent achieved.
(5) Stateless
No state is no agreement on transaction processing and memory, meaning that if the subsequent processing required in front of the information, you must be retransmitted,
This may lead to an increase the amount of data per connection, while on the other hand does not require the foregoing information, it can quickly response.
HTTP Status
HTTP is now a multi-version coexistence, widely used HTTP1.0, the mainstream of the most widely used HTTP1.1, the minimum application Niubi largest HTTP2.0
HTTP1.0 than HTTP1.1 main difference is applied keepline long connection technology
HTTP2.0 although more reasonable advanced, its promotion is not open reason is because HTTP1.1 now able to meet the main application, and HTTP2.0 costs too much lead