If the post is using "multipart/form-data" content-type, and each part could be a file or other content type.
If I want to use GZIP, should the GZIP apply to the entire post body of all parts altogether or could it be possible to choose some file use gzip content-encoding while some file don't.
Is there any standard for it or only common practice ?
Thanks
For example, can I add Content-Encoding:gzip at below 'file1' part
Host: localhost:8081 Connection: keep-alive Content-Length: 317 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36 Cache-Control: no-cache Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop Postman-Token: 7143164d-0da5-0e1d-112e-91f2a21c22c2 Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryPZAv0gGlJrA4ABu2 Accept: */* Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7 ------WebKitFormBoundaryPZAv0gGlJrA4ABu2 Content-Disposition: form-data; name="key1" value1 ------WebKitFormBoundaryPZAv0gGlJrA4ABu2 Content-Disposition: form-data; name="file1"; filename="sample_file.txt" Content-Type: text/plain Content-Encoding: gzip ---------------------------IS IT OK TO ADD GZIP HERE? This is a sample file content! ------WebKitFormBoundaryPZAv0gGlJrA4ABu2--