AddHeader Method

Adds a custom header to send with outgoing messages.

Object Oriented Interface

public function doAddHeader($key, $value);

Procedural Interface

ipworksmq_stomp_do_addheader($res, $key, $value);

Remarks

This method is used to add user-defined headers to the list of headers held by the Header* properties.

When SendMessage or SendData is called, all headers in the Header* properties are added to the outgoing message.

Note that the STOMP specification defines a number of standard headers necessary for implementing the STOMP protocol. When constructing an outgoing message, the class silently ignores any user-defined headers that are already set by the class.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 PHP Edition - Version 20.0 [Build 8155]