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
contentType | MIME Content-Type of the body |
respUse | a #SoupMemoryUse describing how to handle resp_body |
respBody | a data buffer containing the body of the message response. |