-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.go
More file actions
29 lines (26 loc) · 860 Bytes
/
constants.go
File metadata and controls
29 lines (26 loc) · 860 Bytes
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
package mppx
const (
// HTTP header names.
AuthorizationHeader = "Authorization"
WWWAuthenticateHeader = "WWW-Authenticate"
PaymentReceiptHeader = "Payment-Receipt"
ContentTypeHeader = "Content-Type"
CacheControlHeader = "Cache-Control"
XForwardedHostHeader = "X-Forwarded-Host"
IdempotencyKeyHeader = "Idempotency-Key"
)
const (
// Shared HTTP header values and auth scheme fragments.
AuthSchemePayment = "Payment"
AuthSchemePaymentPrefix = AuthSchemePayment + " "
CacheControlNoStore = "no-store"
ReceiptStatusSuccess = "success"
)
const (
// Common media types.
MediaTypeJSON = "application/json"
MediaTypeProblemJSON = "application/problem+json"
MediaTypeFormURLEncoded = "application/x-www-form-urlencoded"
HeaderValueBooleanTrue = "true"
HeaderIdempotentReplayed = "idempotent-replayed"
)