ServerMessage.setResponse

void setResponse(string contentType, soup.types.MemoryUse respUse, ubyte[] respBody = null)

Convenience function to set the response body of a #SoupServerMessage. If content_type is null, the response body must be empty as well.

Parameters

contentTypeMIME Content-Type of the body
respUsea #SoupMemoryUse describing how to handle resp_body
respBodya data buffer containing the body of the message response.