| 1 | package Sloth::RequestParser::Form; | ||
| 2 | BEGIN { | ||
| 3 | $Sloth::RequestParser::Form::VERSION = '0.05'; | ||
| 4 | } | ||
| 5 | # ABSTRACT: A request parser for application/x-www-urlencoded data | ||
| 6 | use Moose; | ||
| 7 | |||
| 8 | with 'Sloth::RequestParser'; | ||
| 9 | |||
| 10 | |||
| 11 | sub parse { | ||
| 12 | my ($self, $request) = @_; | ||
| 13 | return %{ $request->body_parameters }; | ||
| 14 | } | ||
| 15 | |||
| 16 | 1; | ||
| 17 | |||
| 18 | __END__ |