new module:AMF/Remoting/Packet(versionopt)
Creates a new remoting Packet
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
version |
0 | 3 |
<optional> |
3 | The AMF packet version used to serialize/deserialize header and message body values |
- Source:
Members
headerCount
Returns the amount of headers in the AMF packet
- Source:
headers
Returns all of the headers in the AMF packet
- Source:
messageCount
Returns the amount of messages in the AMF packet
- Source:
messages
Returns all of the messages in the AMF packet
- Source:
version :0|3
The AMF packet version
Type:
- 0 | 3
- Source:
Methods
addHeader(name, mustUnderstand, data)
Adds a header
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
name |
string | Identifies the header and the ActionScript object data associated with it | |
mustUnderstand |
boolean | false | Indicates that the server must understand and process this header before it handles any of the following headers or messages |
data |
any | The provided header data |
- Source:
addMessage(targetURI, responseURI, …data)
Adds a message
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
targetURI |
string | The operation to invoke | |
responseURI |
string | The unique operation name to match the response to the client invoke | |
data |
any |
<repeatable> |
The provided message data |
- Source:
removeHeader(name)
Removes a header
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | The header's name to remove |
- Source:
removeMessage(targetURI)
Removes a message
Parameters:
| Name | Type | Description |
|---|---|---|
targetURI |
string | The operation URI of the message to remove |
- Source: