HTTP::Soup::Buffer(3)

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

πŸ’– NAME πŸ’–

HTTP::Soup::Buffer β€” bestie, it's a little boxed buffer object from the HTTP::Soup world, and she's here to hold your bytes πŸ’…


🌸 HIERARCHY 🌸

okay so the family tree is giving noble lineage, she inherits from Glib::Boxed:

  Glib::Boxed
  +----HTTP::Soup::Buffer

so yeah, she's a Glib::Boxed girlie first, and everything else trickles down from there πŸŽ€


✨ METHODS ✨

πŸ¦‹ buffer = HTTP::Soup::Buffer->new ($use, $sv_data)

bestie you're literally constructing a brand new buffer, main character energy fr fr. She takes two args:

  • $use (integer) β€” an integer, that's the vibe 🌈
  • $sv_data (scalar) β€” a scalar, no cap πŸ’«

πŸŽ€ scalar = $buffer->data ($val=undef)

pull the data out of her, or hand her some new data, either way she's serving scalar ✨

  • $val (string) β€” a string, optional, and the default is undef 🫢

πŸ‘‘ unsigned = $buffer->length ($val=0)

the length check!! she will tell you how long she is, and you can also set it β€” very unsigned of her πŸ’œ

  • $val (unsigned) β€” an unsigned value, and if you don't pass one she just defaults to 0 😌

🌈 SEE ALSO 🌈

run, don't walk, to these two β€” they're the besties she rolls with:

  • HTTP::Soup
  • Glib::Boxed

Copyright (C) 2011 by Emmanuel Rodriguez β€” periodt, respect the original author 🫢


okay that's the whole page, you ate that πŸ’… this was perl v5.42.0, dated 2025-07-25, filed under User Contributed Perl Documentation for section 3, mwah πŸ’–βœ¨

πŸ“¦ where this page comes from