Method

MsgServicebuild_message

Declaration [src]

SoupMessage*
msg_service_build_message (
  MsgService* self,
  const char* method,
  const char* uri,
  const char* etag,
  gboolean etag_if_match
)

Description [src]

Construct and checks a SoupMessage for transfer.

Parameters

method const char*
 

Transfer method.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
uri const char*
 

Uri to access.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
etag const char*
 

An optional etag.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
etag_if_match gboolean
 

Use etag if.

Return value

Returns: SoupMessage
 

A SoupMessage or NULL on error.

 The caller of the method takes ownership of the data, and is responsible for freeing it.