GitLab...TClient(3pm)

🌸 GitLab::API::v4::RESTClient 🌸

okay bestie, so this is a page from the User Contributed Perl Documentation set, and the star of the show is GitLab::API::v4::RESTClient πŸ’…

✨ NAME ✨

GitLab::API::v4::RESTClient β€” the HTTP client that does the heavy lifting πŸ’ͺ no cap, it's literally the one carrying all the boxes.


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so right now? this class is using HTTP::Tiny and JSON::MaybeXS to do its whole job. that's the current vibe 🌈

but lowkey β€” this may change, and the interface may change too. so the documentation is intentionally lacking, so it doesn't go around misleading people. which is honestly so considerate of it 🫢

and if you do wanna customize how this class works? bestie, you're gonna have to go look at the source. that's the assignment πŸ“–βœ¨


πŸŽ€ ATTRIBUTES πŸŽ€

πŸ’– http_tiny_request

my $req = $api->rest_client->http_tiny_request();

this is the most recent request arrayref, exactly as it got passed to HTTP::Tiny. iconic behaviour, truly πŸ‘‘

and if this is undef? that means no request has been made. nothing happened. zero. the void. πŸ•³οΈ

πŸ’œ http_tiny_response

my $res = $api->rest_client->http_tiny_response();

this one is the most recent response hashref, exactly as it got passed back from HTTP::Tiny. the receipts, fr fr 🧾

but listen β€” if this is undef and request is defined? that means no response was received, and you will have encountered an error when making the request 😭 that's the "sent it into the void and the void said nothing back" situation. devastating. πŸ’€


🫢 SUPPORT 🫢

See "SUPPORT" in GitLab::API::v4. it's all over there, bestie πŸ¦‹


πŸ‘‘ AUTHORS πŸ‘‘

See "AUTHORS" in GitLab::API::v4. the legends themselves ✨


🌈 LICENSE 🌈

See "LICENSE" in GitLab::API::v4. go read it, it's giving responsible πŸ“œπŸ’…


and that's the whole page, bestie!! πŸ“ this was perl v5.36.0 energy, dated 2023-06-13, straight from the User Contributed Perl Documentation crew β€” slay, stay hydrated, and may all your responses come back defined πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from