HTTP::...Allowed(3pm)

πŸ“¦
version 0.028 Β· 2 versions
  • 0.028 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.027 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… NAME πŸ’…

okay so bestie, welcome to HTTP::Throwable::Role::Status::MethodNotAllowed β€” the whole entire manual page for it shows up as HTTP::...Allowed(3pm) in your terminal, which is honestly giving ✨abbreviated✨ but we move.

This role is 405 Method Not Allowed. That's the vibe. 🚫


🌸 VERSION 🌸

version 0.028 β€” yes, that's the one, no cap 🫢


✨ DESCRIPTION ✨

okay so picture this: the method that showed up in the Request-Line? it is not allowed for the resource that the Request-URI is pointing at. that's the whole situation. πŸ’€

and here's the part you cannot skip, bestie β€” the response MUST include an Allow header, and that header has to contain a list of valid methods for the requested resource. like, that's not optional, that's the law πŸ“œ periodt.


🧚 PERL VERSION 🧚

bestie this library should run on perls released even a long time ago. it should work on any version of perl released in the last five years. iconic. 🫢

although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. and the version may be increased for any reason β€” literally any β€” and there is no promise that patches will be accepted to lower the minimum required perl. so if you're on ancient perl... lowkey live your truth but highkey no promises. πŸ™ˆ


πŸ‘‘ ATTRIBUTES πŸ‘‘

πŸŽ€ allow

this one's an ArrayRef of HTTP methods. it is required β€” not optional, not "eh maybe", required. and those HTTP methods will be type checked to ensure validity and uniqueness. so no duplicates and no nonsense, the type checker said what it said. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹


🌈 AUTHORS 🌈

  • Stevan Little <stevan.little@iinteractive.com>
  • Ricardo Signes <cpan@semiotic.systems>

two absolute legends fr fr πŸ‘‘


This software is copyright (c) 2011 by Infinity Interactive, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


and that's the whole page, bestie πŸŽ€ this was perl v5.36.0 doing its thing back on 2023-01-24 β€” mwah, slay, go write some correct Allow headers πŸ’…βœ¨

πŸ“¦ where this page comes from