set_response


Description:

public void set_response (string? content_type, MemoryUse resp_use, uint8[]? resp_body)

Convenience function to set the response body of a ServerMessage.

If content_type is null, the response body must be empty as well.

Parameters:

this

the message

content_type

MIME Content-Type of the body

resp_use

a MemoryUse describing how to handle resp_body

resp_body

a data buffer containing the body of the message response.

resp_length

the byte length of resp_body.




2022 vala-language.org