Catman...ttp_uri(3pm)

πŸ’… NAME πŸ’…

okay bestie, gather round, because this one is short and sweet and I need you to know it: Catmandu::Fix::Condition::is_http_uri β€” it's a condition that checks whether a field actually contains an HTTP URI. that's the whole gig. she's a vibe check for URLs and she's iconic for it πŸ¦‹

this lil angel lives in the Catman...ttp_uri(3pm) man page, under User Contributed Perl Documentation, so you already know it's a community-crafted gem ✨


🌸 SYNOPSIS 🌸

here's the energy, fr fr β€” you drop her into a fix and she splits the room into the ones who pass and the ones who don't:

if is_http_uri(uri_field)
  ...
else
  ...
end

like. the way that uri_field either IS an HTTP URI or is Not, and the fix just branches accordingly 😭 it's giving main character energy and honestly? obsessed πŸŽ€


πŸ‘‘ SEE ALSO πŸ‘‘

  • Catmandu::Fix β€” the whole Fix ecosystem, the mothership, the blueprint, the reason any of this works πŸ’– go read her, iykyk

and that's the entire page, bestie, no cap. go forth and conditionally check your URIs 🫢

this page ships as part of the User Contributed Perl Documentation, perl v5.36.0, dated 2023-02-09 β€” mwah, slay, periodt πŸ’…πŸŒˆ

πŸ“¦ where this page comes from