We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4362a92 commit efb227bCopy full SHA for efb227b
1 file changed
plugin-apipost/src/main/kotlin/me/leon/toolsfx/plugin/PlaceHolders.kt
@@ -7,6 +7,7 @@ import me.leon.encode.base.base64
7
import me.leon.ext.toBinaryString
8
import me.leon.ext.toFile
9
import me.leon.hash
10
+import tornadofx.urlEncoded
11
12
const val TIMESTAMP = "{{timestamp}}"
13
const val TIMESTAMP_SECONDS = "{{timestamp2}}"
@@ -36,6 +37,7 @@ fun String.methodCall(args: String): String {
36
37
return when (this) {
38
"md5" -> args.hash(this)
39
"digest" -> args.substringAfter(",").hash(args.substringBefore(","))
40
+ "urlencode" -> args.urlEncoded
41
"base64" -> args.base64()
42
"base64File" -> args.toFile().readBytes().base64()
43
"binary" -> args.toBinaryString()
0 commit comments