init_response


Description:

[ CCode ( cname = "gst_rtsp_message_init_response" ) ]
public Result init_response (StatusCode code, string? reason, Message? request)

Initialize this with code and reason.

When reason is null, the default reason for code will be used.

When request is not null, the relevant headers will be copied to the new response message.

Parameters:

this

a Message

code

the status code

reason

the status reason or null

request

the request that triggered the response or null

Returns:

a Result.