HTTP::S...sageBody(3)

πŸ“¦
version 0.01 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

HTTP::Soup::MessageBody β€” bestie, this is the lil boxed type that holds a message body for you 🫢


πŸ¦‹ HIERARCHY πŸ¦‹

okay so the family tree is giving very much "only child", look:

  Glib::Boxed
  +----HTTP::Soup::MessageBody

it inherits straight from Glib::Boxed, no siblings, no drama ✨


🌸 METHODS 🌸

πŸ’… $body->append ($sv)

bestie this one appends stuff to your body, slay πŸ’–

  • $sv (scalar) β€” the thing you're appending, it's a plain scalar, no cap

πŸŽ€ $body->append_take ($sv)

same energy as append but it takes the value, iconic behaviour πŸ‘‘

  • $sv (scalar) β€” again, just a scalar, that's the whole vibe

⭐ scalar = $body->data ($val=undef)

gives you back a scalar, literally the main character of return values ✨

  • $val (string) β€” optional, defaults to undef, so if you don't pass anything it's just undef and that's valid πŸ’œ

πŸ”₯ 64 bit integer = $body->length ($val=0)

hands you a 64 bit integer back, that's a whole lotta bits fr fr 🫢

  • $val (64 bit integer) β€” optional, and the default is 0, so it'll assume zero if you ghost it πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

if you wanna go deeper down the rabbit hole, go check these cuties:

  • HTTP::Soup
  • Glib::Boxed

Copyright (C) 2011 by Emmanuel Rodriguez


okay bestie that's the whole page, no crumbs left πŸ’–

and that's a wrap! this beauty lives in perl v5.42.0, dated 2025-07-25 β€” go forth and slay your message bodies πŸŽ€πŸ’…πŸ¦‹

πŸ“¦ where this page comes from