This topic describes the categorization of EdgeScript built-in functions.

The following table lists the categories and the built-in functions of EdgeScript.
Category Function
IF functions and, or, not, eq, and ne
Numeric functions add, sub, mul, div, mod, gt, ge, lt, le, floor, and ceil
String functions substr, concat, upper, lower, len, byte, match_re, capture_re, gsub_re, split, split_as_key, tohex, tostring, and tochar
Dictionary functions set, get, and foreach
Request processing functions add_req_header, del_req_header, add_rsp_header, del_rsp_header, encode_args, decode_args, rewrite, say, print, and exit
Throttling functions limit_rate_after and limit_rate
Cache functions set_cache_ttl
Time functions today, time, now, localtime, utctime, cookie_time, http_time, parse_http_time, and unixtime
Cipher algorithm functions aes_new, aes_enc, aes_dec, sha1, sha2, hmac, hmac_sha1, md5, and md5_bin
JSON functions json_enc and json_dec
Miscellaneous functions base64_enc, base64_dec, url_escape, url_unescape, rand, rand_hit, rand_bytes, crc, and tonumber