ServerHttpResponse.writeBodyString

Writes a string of content to the response's output stream.

struct ServerHttpResponse
void
writeBodyString

Parameters

content string

The content to write.

contentType string

The declared content type of the data, which is written as the "Content-Type" header.