setHeader()

Overview

public any function setHeader(
      required string name 
    , required string value
)

Adds an individual header to the headers in the response

Arguments

NameTypeRequiredDescription
namestringYesthe name of the header
valuestringYesthe value of the header