feat(expressions): add contentLength to bot expressions (#1120)
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
88b3e457ee
commit
d12993e31d
4 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ func BotEnvironment() (*cel.Env, error) {
|
|||
return New(
|
||||
// Variables exposed to CEL programs:
|
||||
cel.Variable("remoteAddress", cel.StringType),
|
||||
cel.Variable("contentLength", cel.IntType),
|
||||
cel.Variable("host", cel.StringType),
|
||||
cel.Variable("method", cel.StringType),
|
||||
cel.Variable("userAgent", cel.StringType),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue