What is RESTAPIResponse

setHeaders

Set response headers from the specified object

getStreamWriter

Return stream writer. Caller responsible to set proper content type and status using setStatus and setHeader methods. Caller responsible to populate all headers on response before actually writing to stream

setLocation

Set the Location header

setError

Set Response Error

setContentType

Set the Content-Type header |

setBody

Use the specified object as the response body

setStatus

Set response HTTP status code

setHeader

Set a response header