The compiled functions implement that interface which means you can inspect the signature of the method that created them and discover its generic types.
18 lines
273 B
Bash
Executable File
18 lines
273 B
Bash
Executable File
#!/bin/bash
|
|
|
|
while getopts ":n:f:t:" opt; do
|
|
case $opt in
|
|
n)
|
|
NAME=$OPTARG
|
|
;;
|
|
f)
|
|
FUNC=$OPTARG
|
|
;;
|
|
t)
|
|
TYPE=$OPTARG
|
|
;;
|
|
esac
|
|
done
|
|
|
|
curl -X POST -H "Content-Type: text/plain" -d $FUNC localhost:8080/consumer/$NAME?type=$TYPE
|