This repository was archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathedgerules.go
More file actions
43 lines (40 loc) · 1.38 KB
/
edgerules.go
File metadata and controls
43 lines (40 loc) · 1.38 KB
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
package bunny
// EdgeRuleTrigger represents the values of the Trigger field of an EdgeRule.
type EdgeRuleTrigger struct {
Type *int `json:"Type,omitempty"`
PatternMatches []string `json:"PatternMatches,omitempty"`
PatternMatchingType *int `json:"PatternMatchingType,omitempty"`
Parameter1 *string `json:"Parameter1,omitempty"`
}
// Constants for the ActionType fields of an EdgeRule.
const (
EdgeRuleActionTypeForceSSL int = iota
EdgeRuleActionTypeRedirect
EdgeRuleActionTypeOriginURL
EdgeRuleActionTypeOverrideCacheTime
EdgeRuleActionTypeBlockRequest
EdgeRuleActionTypeSetResponseHeader
EdgeRuleActionTypeSetRequestHeader
EdgeRuleActionTypeForceDownload
EdgeRuleActionTypeDisableTokenAuthentication
EdgeRuleActionTypeEnableTokenAuthentication
EdgeRuleActionTypeOverrideCacheTimePublic
EdgeRuleActionTypeIgnoreQueryString
EdgeRuleActionTypeDisableOptimizer
EdgeRuleActionTypeForceCompression
EdgeRuleActionTypeSetStatusCode
EdgeRuleActionTypeBypassPermaCache
)
// Constants for the Type field of an EdgeRuleTrigger.
const (
EdgeRuleTriggerTypeURL int = iota
EdgeRuleTriggerTypeRequestHeader
EdgeRuleTriggerTypeResponseHeader
EdgeRuleTriggerTypeURLExtension
EdgeRuleTriggerTypeCountryCode
EdgeRuleTriggerTypeRemoteIP
EdgeRuleTriggerTypeURLQueryString
EdgeRuleTriggerTypeRandomChance
EdgeRuleTriggerTypeStatusCode
EdgeRuleTriggerTypeRequestMethod
)