In HTTP, the body data type is specified according to the MIME standard.

MIME divides data data types into eight categories. Each category is subdivided into subcategories. The form is ‘type/subtype’.

  1. Text: Readable data in the format of text. We are most familiar with text/ HTML, which stands for hypertext document.

  2. Image: an image file, including image/ GIF, image/ JPEG, and image/ PNG.

  3. Audio/Video: Audio and video data, such as Audio/MPEG and video/ MP4.

  4. Application: The data format is not fixed, may be text or binary, must be interpreted by the upper-layer application. Application /octet-stream application/octet-stream application/octet-stream application/octet-stream Opaque binary data.

Enconding-type :gzip,deflate, BR tells the receiver which method is used to compress the data.

In the HTTP request header, the Accpet field tells the server what data to receive. Accpet-encoding tells which compression method is supported. The server tells the client what file format is through the Content-type. Content-ecoding represents compression.

Note: Header fields such as Accept can list multiple possible options in order of “, “or”; The q= “argument to specify the exact weight.

Example: accept-encoding: gzip,deflate; Q = 1.0 *; Q = 0.5, br. q=0

Q =0 indicates that BR compression is rejected.