Update HTTPRequest.pm

The non-arrayref forms of enum and duck_type have been deprecated