Catman...s_code(3pm)

πŸ’– Catmandu::Fix::uri_status_code β€” bestie edition πŸ’–

okay so this is Catmandu::Fix::uri_status_code(3pm) from the User Contributed Perl Documentation, and it's lowkey one of the most useful little fixes ever. it does exactly one thing and it does it flawlessly: it checks the HTTP status of a uri. that's it. that's the whole vibe. ✨


🌸 NAME 🌸

Catmandu::Fix::uri_status_code β€” check the HTTP status of a uri 🫢

like literally, you hand it a uri and it comes back with the status. main character behavior honestly. πŸ’…


✨ SYNOPSIS ✨

here's the whole thing in action, no cap:

copy_field(url,status)
uri_status_code(status) # status => '200'

so first you copy_field(url,status) to get the url into a field called status (iykyk, that's the input), and then uri_status_code(status) goes and checks it. and after it's done, that status field is holding something like '200'. slay. πŸŽ€


πŸ¦‹ SEE ALSO πŸ¦‹

  • Catmandu::Fix β€” the whole fix family, the blueprint, the moment. go read it bestie.

and that's the page!! it's from perl v5.36.0, dated 2023-02-09, and that's the whole entire thing. thanks for coming to my ted talk, mwah πŸ’‹πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from