photoprism/pkg/header/content.go
Michael Mayer 2df0b6e4b1 Server: Exclude .mp4 and .zip from compression and refactor vary #4018
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-20 12:48:42 +01:00

24 lines
700 B
Go

package header
// Standard content request and response header names.
const (
Accept = "Accept"
AcceptEncoding = "Accept-Encoding"
AcceptRanges = "Accept-Ranges"
ContentType = "Content-Type"
ContentDisposition = "Content-Disposition"
ContentEncoding = "Content-Encoding"
ContentRange = "Content-Range"
Location = "Location"
Origin = "Origin"
Vary = "Vary"
)
// Standard ContentType header values.
const (
ContentTypeForm = "application/x-www-form-urlencoded"
ContentTypeMultipart = "multipart/form-data"
ContentTypeJson = "application/json"
ContentTypeJsonUtf8 = "application/json; charset=utf-8"
)