WWW::C...equest(3pm)
π WWW::Curl::Simple::Request π
okay so bestie, we're diving into WWW::Curl::Simple::Request β a 3pm page from the User Contributed Perl Documentation, and it is adorable, it's literally just a lil class that holds onto a request and a response like it's carrying your iced coffee for you. π«Ά
β¨ NAME β¨
WWW::Curl::Simple::Request β a small class representing request/response. tiny. humble. doing the most behind the scenes, no cap.
πΈ VERSION πΈ
version 0.100191
π¦ DESCRIPTION π¦
So the tea is: this class is just a way to collect the things that both the single and the multi sides of the world need, plus a lil bit of WWW::Curl setup. That's it, that's the whole job. π
And listen β you genuinely shouldn't need to use this class anywhere yourself. It's giving backstage crew, not main character. BUT plot twist: $curl->perform hands you back objects of this class, so you'll absolutely run into them whether you meant to or not. Surprise! π
π ATTRIBUTES π
π agent
A String π« that gets sent as the user-agent string. Defaults to "WWW::Curl::Simple/" plus the current version number, so it knows exactly who it is, iconic.
π body
The body of the response. yeah. the whole vibe. π
π head
The head of the response. the lil hat on top of the body, if you will. π©
π request
The HTTP::Request object used to create this response. it remembers where it came from, we love a class with roots. π±
π simple_ua
The WWW::Curl::Simple instance that generated this request. its parent, basically. proud of u bb. π₯Ή
π easy
The WWW::Curl::Easy object which created this response. the actual muscle behind everything, honestly. πͺ
π METHODS π
β¨ perform β¨
Performs the actual request through WWW::Curl::Easy. Used mostly in single request land, if yk yk. π
β οΈ heads up bestie: will croak on errors. like, it will die, no soft launch, no "we'll talk about it later". so wrap it up if you're not ready for that energy. π
β¨ response β¨
Returns a HTTP::Response that represents the response of this object. π
Also sets request on the response object to the original request object β so the response knows exactly which request it's answering. it's giving matched set, soulmate behavior, fr fr. π«Ά
π AUTHOR π
Andreas Marienborg <andremar@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2013 by Andreas Marienborg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. open source queen behavior tbh π
and that's the whole page!! π thanks for reading, ily, go write some curl code β¨
this has been perl v5.36.0, dated 2022-08-29, signing off β mwah π
π¦ where this page comes from
- ubuntu noble: libwww-curl-simple-perl 0.100191-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwww-curl-simple-perl 0.100191-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwww-curl-simple-perl 0.100191-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms