Message.setResponse

Convenience function to set the response body of a #SoupMessage. If @content_type is %NULL, the response body must be empty as well.

class Message
void
setResponse

Parameters

contentType string

MIME Content-Type of the body

respUse SoupMemoryUse

a #SoupMemoryUse describing how to handle @resp_body

respBody string

a data buffer containing the body of the message response.

Meta