HTTP::Soup::Buffer(3)
π 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 isundefπ«Ά
π 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 to0π
π SEE ALSO π
run, don't walk, to these two β they're the besties she rolls with:
HTTP::SoupGlib::Boxed
π COPYRIGHT π
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
- fedora 43: perl-HTTP-Soup 0.01-39.fc43 Β· LicenseRef-Callaway-LGPLv2 OR Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms