nitcorn :: HttpRequest :: string_arg
arg_name
in the request as a Stringor null if it was not found.
Also cleans the String by trimming it.
If the Strings happens to be empty after trimming,
the method will return null
NOTE: Prioritizes POST before GET
# Returns argument `arg_name` in the request as a String
# or null if it was not found.
# Also cleans the String by trimming it.
# If the Strings happens to be empty after trimming,
# the method will return `null`
#
# NOTE: Prioritizes POST before GET
fun string_arg(arg_name: String): nullable String do
if not all_args.has_key(arg_name) then return null
var s = all_args[arg_name].trim
if s.is_empty then return null
return s
end
lib/nitcorn/http_request.nit:65,2--77,4