1Net::Stomp::Frame(3) User Contributed Perl Documentation Net::Stomp::Frame(3)
2
3
4
6 Net::Stomp::Frame - A STOMP Frame
7
9 use Net::Stomp::Frame;
10 my $frame = Net::Stomp::Frame->new( {
11 command => $command,
12 headers => $headers,
13 body => $body,
14 } );
15 my $frame = Net::Stomp::Frame->parse($string);
16 my $string = $frame->as_string;
17
19 This module encapulates a Stomp frame.
20
21 A Stomp frame consists of a command, a series of headers and a body.
22
23 For details on the protocol see <https://stomp.github.io/>.
24
26 new
27 Create a new Net::Stomp::Frame object:
28
29 my $frame = Net::Stomp::Frame->new( {
30 command => $command,
31 headers => $headers,
32 body => $body,
33 } );
34
35 parse
36 Create a new Net::Somp::Frame given a string containing the serialised
37 frame:
38
39 my $frame = Net::Stomp::Frame->parse($string);
40
41 as_string
42 Create a string containing the serialised frame representing the frame:
43
44 my $string = $frame->as_string;
45
46 command
47 Get or set the frame command.
48
49 body
50 Get or set the frame body.
51
52 headers
53 Get or set the frame headers, as a hashref. All following methods are
54 just shortcuts into this hashref.
55
56 destination
57 Get or set the "destination" header.
58
59 content_type
60 Get or set the "content-type" header.
61
62 content_length
63 Get or set the "content-length" header.
64
65 exchange
66 Get or set the "exchange" header.
67
68 message_id
69 Get or set the "message-id" header.
70
71 reply_to
72 Get or set the "reply-to" header.
73
75 Net::Stomp.
76
78 Leon Brocard <acme@astray.com>.
79
81 Gianni Ceccarelli <dakkar@thenautilus.net>
82
84 Copyright (C) 2006, Leon Brocard
85
86 This module is free software; you can redistribute it or modify it
87 under the same terms as Perl itself.
88
89
90
91perl v5.32.0 2020-07-28 Net::Stomp::Frame(3)