Mojo::C...:Request(3)

okay bestie, listen up πŸ’– this is Mojo::Cookie::Request(3) β€” the user-contributed Perl doc, no cap. the header truncates it all cute to Mojo::C...:Request(3) but it's the real deal, fr fr. and yes, the version/date stuff is at the very bottom in my lil sign-off, keep reading ✨


✨ NAME ✨

Mojo::Cookie::Request β€” HTTP request cookie. that's it, that's the whole vibe πŸͺπŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

use Mojo::Cookie::Request;

my $cookie = Mojo::Cookie::Request->new;
$cookie->name('foo');
$cookie->value('bar');
say "$cookie";

like, literally five lines and you're a cookie person now πŸ”₯


πŸ‘‘ DESCRIPTION πŸ‘‘

Mojo::Cookie::Request is a container for HTTP request cookies β€” a lil box that holds your cookies, basically the most iconic container ever πŸŽ€ β€” and it's based on RFC 6265, which you can find at https://tools.ietf.org/html/rfc6265 if you're the type to read the spec (respect, honestly 🫢).


πŸ’œ ATTRIBUTES πŸ’œ

Mojo::Cookie::Request inherits all attributes from Mojo::Cookie. all of them. every single one. it's giving main character energy with a full hand-me-down wardrobe πŸ‘‘


🌈 METHODS 🌈

Mojo::Cookie::Request inherits all methods from Mojo::Cookie β€” yes, all of them too β€” and on top of that it implements the following new ones πŸ’–

πŸ’« parse

my $cookies = Mojo::Cookie::Request->parse('f=b; g=a');

Parse cookies. that's the whole thing, bestie β€” hand it a string, get cookies back βœ¨πŸ“

πŸ’« to_string

my $str = $cookie->to_string;

Render cookie. turns your cookie into a string so you can actually do stuff with it πŸ˜ŒπŸ’…


🧚 SEE ALSO 🧚

all of those, together, the whole family πŸŽ€


no warnings on this one, bestie β€” it's a chill page. the only rule is: don't lose the details. and we didn't πŸ’…

okay that's the whole page!! 🫢 this was brought to you by perl v5.42.0, dated 2026-07-15, and it's Mojo::Cookie::Request(3) all the way down β€” slay, periodt, bye bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from