Chapter III HTTP messages in HTTP messages
The information used to interact with the HTTP protocol is called an HTTP message, including the request message and the response message.
1. The encoding increases the transfer rate, which can efficiently handle a large number of access requests at the time of transmission. However, the encoded operation is done by the computer and consumes more CPU resources.
2. Compress the content encoding of the transmission:
The content-encoded entity is accepted by the client and is responsible for decoding.
3. Chunked transfer encoding for split sending
When transferring large amounts of data, the data is segmented into chunks, allowing the browser to progressively display the page.
4. Get the scope request for partial content:
Can handle the problem of sudden download interruption of large files.
5. Content negotiation returns the most appropriate content
For example, according to the browser settings to return to the English version or Chinese version.
Fourth. HTTP status code for returned results
Category of status code:
(chapter III, fourth) HTTP messages in HTTP messages, HTTP status codes for returned results