-
Notifications
You must be signed in to change notification settings - Fork 1
/
headers.go
61 lines (60 loc) · 2.49 KB
/
headers.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package header
const (
// Accept is HTTP header for "Accept"
Accept = "Accept"
// AcceptEncoding is HTTP header for "Accept-Encoding"
AcceptEncoding = "Accept-Encoding"
// ApplicationJSON is HTTP header value for "application/json"
ApplicationJSON = "application/json"
// ApplicationJoseJSON is HTTP header value for "application/jose+json"
ApplicationJoseJSON = "application/jose+json"
// ApplicationGRPC is HTTP header value for "application/grpc"
ApplicationGRPC = "application/grpc"
// ApplicationGRPCWebProto is HTTP header value for "application/grpc-web+proto"
ApplicationGRPCWebProto = "application/grpc-web+proto"
// ApplicationTimestampQuery is HTTP header value for RFC3161 Timestamp request
ApplicationTimestampQuery = "application/timestamp-query"
// ApplicationTimestampReply is HTTP header value for RFC3161 Timestamp response
ApplicationTimestampReply = "application/timestamp-reply"
// Authorization is HTTP header for "Authorization"
Authorization = "Authorization"
// Bearer is token type for "Authorization" header
Bearer = "Bearer"
// DPoP is token type for "Authorization" header,
// and header name for DPoP
DPoP = "DPoP"
// CacheControl is HTTP header for "Cache-Control"
CacheControl = "Cache-Control"
// ContentDisposition is HTTP header for "Content-Disposition"
ContentDisposition = "Content-Disposition"
// ContentEncoding is HTTP header for "Content-Encoding"
ContentEncoding = "Content-Encoding"
// ContentLength is HTTP header for "Content-Length"
ContentLength = "Content-Length"
// ContentType is HTTP header for "Content-Type"
ContentType = "Content-Type"
// Gzip content type for "gzip"
Gzip = "gzip"
// IfMatch is HTTP header for "If-Match"
IfMatch = "If-Match"
// Link is HTTP header for "Link"
Link = "Link"
// Location is HTTP header for "Location"
Location = "Location"
// ReplayNonce is HTTP header for "Replay-Nonce"
ReplayNonce = "Replay-Nonce"
// TextPlain is HTTP header value for "application/json"
TextPlain = "text/plain"
// UserAgent is HTTP header value for "User-Agent"
UserAgent = "User-Agent"
// XHostname contains the name of the HTTP header to indicate which host requested the signature
XHostname = "X-HostName"
// XCorrelationID is HTTP header for "X-Correlation-ID"
XCorrelationID = "X-Correlation-ID"
// XDeviceID is HTTP header for "X-Device-ID"
XDeviceID = "X-Device-ID"
// XFilename contains the name of the artifact to sign
XFilename = "X-Filename"
// XForwardedProto contains the protocol
XForwardedProto = "X-Forwarded-Proto"
)