ServerMessage.setResponse

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

class ServerMessage
void
setResponse

Parameters

contentType string

MIME Content-Type of the body

respUse soup.types.MemoryUse

a #SoupMemoryUse describing how to handle resp_body

respBody ubyte[]

a data buffer containing the body of the message response.