setRenderer()

Overview

public any function setRenderer(
      required string renderer
)

Sets the renderer of the response and returns reference to self so that methods can be chained.

Arguments

NameTypeRequiredDescription
rendererstringYesrenderer for the response, e.g. 'json'