setData()

Overview

public any function setData(
      required any data
)

Sets the data of the response. This data will later be converted into whichever response format is specified for the request (json by default)

Arguments

NameTypeRequiredDescription
dataanyYesthe data to set