Signal

SoupMessage::request-compression-dictionary

unstable since: 3.8

Declaration

gboolean
request_compression_dictionary (
  SoupMessage* self,
  SoupCompressionDictionaryRequest* request,
  gpointer user_data
)

Description [src]

Emitted when the server responds with Content-Encoding: dcb or Content-Encoding: dcz and libsoup needs the raw dictionary bytes to set up decompression.

Call soup_compression_dictionary_request_set_dictionary() on request to provide the dictionary, or soup_compression_dictionary_request_cancel() to abort. Either can be done synchronously inside this handler, or asynchronously after calling g_object_ref() on request and returning TRUE.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Available since: 3.8

Parameters

request

Type: SoupCompressionDictionaryRequest

A SoupCompressionDictionaryRequest to resolve.

The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE to indicate the request will be handled (sync or async), or FALSE to let other handlers run. If no handler returns TRUE the response fails.