Content-Disposition
Whether to display the body inline or download it, and the file name.
Response header (sent by servers) content
How it works
attachment triggers a download. Always sanitize file names taken from user input.
Example
Content-Disposition: attachment; filename="report.csv"
See it live: send any request in Endpoint Client and open the Headers tab, where every response header is explained. Specification: RFC 6266.
Related headers
Accept
Media types the client can handle in the response.
Accept-Encoding
Compression formats the client understands.
Accept-Language
Preferred human languages for the response.
Content-Encoding
Compression applied to the body.
Content-Length
Body size in bytes.
Content-Range
Which bytes of the full resource this partial body holds.