Protoc...t::URL(3pm)
πΈ NAME πΈ
okay bestie, this is Protocol::WebSocket::URL(3pm) β WebSocket URL π
it's giving URL-handling main character energy, and yes, that's the whole name vibe.
β¨ SYNOPSIS β¨
# Construct
my $url = Protocol::WebSocket::URL->new;
$url->host('example.com');
$url->port('3000');
$url->secure(1);
$url->to_string; # wss://example.com:3000
# Parse
my $url = Protocol::WebSocket::URL->new->parse('wss://example.com:3000');
$url->host; # example.com
$url->port; # 3000
$url->secure; # 1
π DESCRIPTION π
Construct or parse a WebSocket URL. That's the whole assignment, and it ate. π₯
π ATTRIBUTES π
the attribute lineup is literally:
hostportresource_namesecure
π¦ METHODS π¦
new
Create a new Protocol::WebSocket::URL instance. fresh instance, fresh vibe β¨
parse
Parse a WebSocket URL. yep, that's the move π«Ά
to_string
Construct a WebSocket URL. iconic behavior, no cap π
mwah π that's the page, bestie β perl v5.42.0, dated 2019-03-13, and it's Protocol::WebSocket::URL(3pm) signing off ππ¦
π¦ where this page comes from
- opensuse-leap 16.0: perl-Protocol-WebSocket 0.26-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms