This method is called from the
response object. It sets the content type for the HTTP response.
setContentType(), this method allows you to set the content type for the HTTP response. This allows you to have OrientDB tell your application how it should prase the response content. Also, allows you to enable the keep-alive.
var response = response.writeHeaders(<type>, <keep-alive>)
<type>Defines the content type for the HTTP response. Set as a string variable.
<keep-alive>Defines whether you want to use the keep-alive. Set as a boolean value. Defaults to
This method returns the response object.