-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathenums.go
63 lines (56 loc) · 1.3 KB
/
enums.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
62
63
package fetch
// cache enums
const (
CacheDefault = "default"
CacheNoStore = "no-store"
CacheReload = "reload"
CacheNone = "no-cache"
CacheForce = "force-cache"
CacheOnlyIfCached = "only-if-cached"
)
// credentials enums
const (
CredentialsOmit = "omit"
CredentialsSameOrigin = "same-origin"
CredentialsInclude = "include"
)
// Common HTTP methods.
//
// Unless otherwise noted, these are defined in RFC 7231 section 4.3.
const (
MethodGet = "GET"
MethodHead = "HEAD"
MethodPost = "POST"
MethodPut = "PUT"
MethodPatch = "PATCH" // RFC 5789
MethodDelete = "DELETE"
MethodConnect = "CONNECT"
MethodOptions = "OPTIONS"
MethodTrace = "TRACE"
)
// Mode enums
const (
ModeSameOrigin = "same-origin"
ModeNoCORS = "no-cors"
ModeCORS = "cors"
ModeNavigate = "navigate"
)
// Redirect enums
const (
RedirectFollow = "follow"
RedirectError = "error"
RedirectManual = "manual"
)
// Referrer enums
const (
ReferrerNone = "no-referrer"
ReferrerClient = "client"
)
// ReferrerPolicy enums
const (
ReferrerPolicyNone = "no-referrer"
ReferrerPolicyNoDowngrade = "no-referrer-when-downgrade"
ReferrerPolicyOrigin = "origin"
ReferrerPolicyCrossOrigin = "origin-when-cross-origin"
ReferrerPolicyUnsafeURL = "unsafe-url"
)