2024-01-10 12:21:43 +01:00
|
|
|
package header
|
|
|
|
|
2024-01-16 16:42:21 +01:00
|
|
|
import "strings"
|
|
|
|
|
|
|
|
// Content header names.
|
2024-01-10 12:21:43 +01:00
|
|
|
const (
|
2024-01-16 14:36:08 +01:00
|
|
|
Accept = "Accept"
|
2024-01-16 16:42:21 +01:00
|
|
|
AcceptEncoding = "Accept-Encoding"
|
2024-01-16 14:36:08 +01:00
|
|
|
AcceptRanges = "Accept-Ranges"
|
2024-01-10 12:21:43 +01:00
|
|
|
ContentType = "Content-Type"
|
|
|
|
ContentTypeForm = "application/x-www-form-urlencoded"
|
|
|
|
ContentTypeJson = "application/json"
|
|
|
|
ContentDisposition = "Content-Disposition"
|
2024-01-16 14:36:08 +01:00
|
|
|
ContentEncoding = "Content-Encoding"
|
|
|
|
ContentRange = "Content-Range"
|
|
|
|
Location = "Location"
|
|
|
|
Origin = "Origin"
|
|
|
|
Vary = "Vary"
|
2024-01-10 12:21:43 +01:00
|
|
|
)
|
2024-01-16 16:42:21 +01:00
|
|
|
|
|
|
|
// Content header defaults.
|
|
|
|
var (
|
|
|
|
DefaultVaryHeaders = []string{XAuthToken, AcceptEncoding}
|
|
|
|
DefaultVary = strings.Join(DefaultVaryHeaders, ", ")
|
|
|
|
)
|