Message.setRequest

Convenience function to set the request body of a #SoupMessage. If @content_type is %NULL, the request body must be empty as well.

class Message
void
setRequest

Parameters

contentType string

MIME Content-Type of the body

reqUse SoupMemoryUse

a #SoupMemoryUse describing how to handle @req_body

reqBody string

a data buffer containing the body of the message request.

Meta