RTSPMessage.initResponse

Initialize msg 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

code gstrtsp.types.RTSPStatusCode

the status code

reason string

the status reason or null

request gstrtsp.rtspmessage.RTSPMessage

the request that triggered the response or null

Return Value

Type: gstrtsp.types.RTSPResult

a #GstRTSPResult.