The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::WebSocket::HTTP - HTTP utilities for Net::WebSocket

SYNOPSIS

    @tokens = Net::WebSocket::HTTP::split_tokens($tokens_str);

FUNCTIONS

@tokens = split_tokens( TOKENS_STR )

A parser for the 1#token format as defined in RFC 2616. (1# and token are defined independently of each other.)

Returns a list of the HTTP tokens in TOKENS_STR. Throws an exception if any of the tokens is invalid as per the RFC’s token definition.