-
Notifications
You must be signed in to change notification settings - Fork 15
/
analyze_headersMore_directives.gen.go
37 lines (33 loc) · 1.31 KB
/
analyze_headersMore_directives.gen.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
/**
* Copyright (c) F5, Inc.
*
* This source code is licensed under the Apache License, Version 2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
// Code generated by generator; DO NOT EDIT.
// All the definitions are extracted from the source code
// Each bit mask describes these behaviors:
// - how many arguments the directive can take
// - whether or not it is a block directive
// - whether this is a flag (takes one argument that's either "on" or "off")
// - which contexts it's allowed to be in
package crossplane
var headersMoreDirectives = map[string][]uint{
"more_clear_headers": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxHTTPLifConf | ngxConf1More,
},
"more_clear_input_headers": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxHTTPLifConf | ngxConf1More,
},
"more_set_headers": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxHTTPLifConf | ngxConf1More,
},
"more_set_input_headers": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxHTTPLifConf | ngxConf1More,
},
}
// MatchHeadersMoreLatest is a MatchFunc for the latest version of headersmore.
func MatchHeadersMoreLatest(directive string) ([]uint, bool) {
m, ok := headersMoreDirectives[directive]
return m, ok
}