writeContentType method

  1. @override
void writeContentType(
  1. Response response
)
override

Sets the 'Content-Type' header of the response to 'application/xml; charset=utf-8'.

Implementation

@override
void writeContentType(Response response) {
  response.headers.set('Content-Type', 'application/xml; charset=utf-8');
}