2017-10-07 Note added by Athanasius: This node was copied from StackOverflow. See also Re: Extract specify values in file log using perl.
The Mojolicious has two methods to access POST body: body_params and json
What is the benefit of them?
UPD I think, it will be more handy if body_params returns hash if body is recognized by some parser and body_type will return the name of this parser. Thus if it were POST from form body_type will return application/x-www-form-urlencoded
In reply to Why Mojolicious has two methods to access POST body? by IruP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |