check_result


Description:

public bool check_result (Message message, void* read_bytes, size_t bytes_length) throws Error

Checks result of the message and sets the error if it failed.

When it failed and the read_bytes is provided, then these are set to message's response body, thus it can be used later.

Parameters:

this

an SoupSession

message

a Message

read_bytes

optional bytes which had been read from the stream, or null

bytes_length

how many bytes had been read; ignored when read_bytes is null

Returns:

Whether succeeded, aka true, when no error recognized and false otherwise.