Understand Header Merging and Redefinition Rules
masterRestEase allows defining headers in four places: Interface Attributes, Interface Properties, Method Attributes, and Method Parameters. They are merged using these rules:
- Interface Merging: Constant and Variable Interface headers are merged. If a header is defined both as an attribute and a property, the request will contain multiple values for that header.
- Method Overriding: Method headers replace Interface headers. If a header name exists on both, the method-level definition wins.
- Parameter Merging: Method headers and Method Parameters are merged.
- Null Values: A header with a
nullvalue will not be added to the request, but it can be used to replace/remove a previously defined header of the same name.