![]() |
![]()
| ![]() |
![]()
NAMENet::Stomp::Frame - A STOMP Frame SYNOPSISuse Net::Stomp::Frame; my $frame = Net::Stomp::Frame->new( { command => $command, headers => $headers, body => $body, } ); my $frame = Net::Stomp::Frame->parse($string); my $string = $frame->as_string; DESCRIPTIONThis module encapulates a Stomp frame. A Stomp frame consists of a command, a series of headers and a body. For details on the protocol see <https://stomp.github.io/>. METHODSnewCreate a new Net::Stomp::Frame object: my $frame = Net::Stomp::Frame->new( { command => $command, headers => $headers, body => $body, } ); parseCreate a new Net::Somp::Frame given a string containing the serialised frame: my $frame = Net::Stomp::Frame->parse($string); as_stringCreate a string containing the serialised frame representing the frame: my $string = $frame->as_string; commandGet or set the frame command. bodyGet or set the frame body. headersGet or set the frame headers, as a hashref. All following methods are just shortcuts into this hashref. destinationGet or set the "destination" header. content_typeGet or set the "content-type" header. content_lengthGet or set the "content-length" header. exchangeGet or set the "exchange" header. message_idGet or set the "message-id" header. reply_toGet or set the "reply-to" header. SEE ALSONet::Stomp. AUTHORLeon Brocard <acme@astray.com>. CONTRIBUTORSGianni Ceccarelli <dakkar@thenautilus.net> COPYRIGHTCopyright (C) 2006, Leon Brocard This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
|