util_ref_message_request_body


Description:

[ Version ( since = "3.46" ) ]
public static InputStream? util_ref_message_request_body (Message message, out ssize_t out_length)

Returns referenced request data for the message, as being previously set by the util_set_message_request_body or util_set_message_request_body_from_data.

Do not call this function while the message is queued in a Session, nor modify the input stream position until the message lefts the Session.

Parameters:

message

a Message

out_length

length of the input stream

Returns:

a new InputStream with the request body being previously set, or null. The out_length is set to the length of the returned input stream.