Net::Stomp::Frame(3pm)

Net::Stomp::Frame3pm

A stomp frame

Usage

  use 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;

Overview

This 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/>.

Methods

new

Create a new Net::Stomp::Frame object:

  my $frame = Net::Stomp::Frame->new( {
    command => $command,
    headers => $headers,
    body    => $body,
  } );

parse

Create a new Net::Somp::Frame given a string containing the serialised frame:

  my $frame  = Net::Stomp::Frame->parse($string);

as_string

Create a string containing the serialised frame representing the frame:

  my $string = $frame->as_string;

command

Get or set the frame command.

body

Get or set the frame body.

headers

Get or set the frame headers, as a hashref. All following methods are just shortcuts into this hashref.

destination

Get or set the "destination" header.

content_type

Get or set the "content-type" header.

content_length

Get or set the "content-length" header.

exchange

Get or set the "exchange" header.

message_id

Get or set the "message-id" header.

reply_to

Get or set the "reply-to" header.

Contributors

Gianni Ceccarelli <[email protected]>

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–10
  5. 11
  6. 12
  7. 13

Author

Leon Brocard <[email protected]>.

From libnet-stomp-perl 0.62-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.