Creating Custom Message Header Fields
To create a custom message header field, you can create a map with custom user properties fields. The user properties are carried in the message separate from the payload.
Solace Messaging API for C and .NET
When using the Solace C API and Solace .NET API, you can create a user property map for a message through a single function or method call. Each field in a user properties map is a SDT field. Once the map is created, data for fields in the map can be added with the Solace C API and Solace .NET API container functions and methods. For a comprehensive list of the available container methods and functions, see the following in the Solace Messaging APIs documentation for the appropriate Solace Messaging API.
Solace Messaging API for JavaScript and Node.js
To create custom message header fields, first create an SDT map with custom user properties fields, then pass it to the setUserPropertyMap function. 
| Solace Messaging API | Use | 
|---|---|
| 
                                                                             Solace C API  | 
                                                                        
                                                                             
  | 
                                                                    
| 
                                                                             Solace .NET API  | 
                                                                        
                                                                             
  | 
                                                                    
| 
                                                                             Solace JavaScript API and Solace Node.js API  | 
                                                                        
                                                                             
  |