setHeaders()

Overview

public any function setHeaders(
      required struct headers
)

Sets headers on the rest response object. Can be called multiple times to build a greater collection of headers

Arguments

NameTypeRequiredDescription
headersstructYesStructure containing headers where struct keys are header names and values are corresponding header values