---
name: "Net::AMQP::Frame"
section: "3pm"
platform: "linux"
package: "libnet-amqp-perl"
version: "0.06~dfsg-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::AMQP::Frame"
---

# Net::AMQP::Frame(3pm)

AMQP wire-level Frame object

## NAME

Net::AMQP::Frame - AMQP wire-level Frame object

## CLASS METHODS

### new

Takes an arbitrary list of key/value pairs and casts it into this class.  Nothing special here.

### factory

```
  Net::AMQP::Frame->factory(
    type_id => 1,
    channel => 1,
    payload => '',
  );
```

Will attempt to identify a Net::AMQP::Frame subclass for further parsing, and will croak on failure.  Returns a Net::AMQP::Frame subclass object.

## OBJECT METHODS

### Field accessors

Each subclass extends these accessors, but they share in common the following:

- *type\_id*

  - *channel*

  - *size*

  - *payload*

  ### parse\_payload

Performs the parsing of the 'payload' binary data.

### to\_raw\_payload

Returns the binary data the represents this frame's payload.

### to\_raw\_frame

Returns a raw binary string representing this frame on the wire.

### type\_string

Returns a string that uniquely represents this frame type, such as 'Method Basic.Consume', 'Header Basic' or 'Body'

## SEE ALSO

Net::AMQP

## COPYRIGHT

Copyright (c) 2009 Eric Waters and XMission LLC (http://www.xmission.com/).  All rights reserved.  This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

## AUTHOR

Eric Waters \<ewaters@gmail.com\>
