Method
SoupMessageset_request_body_from_bytes
Declaration [src]
void
soup_message_set_request_body_from_bytes (
SoupMessage* msg,
const char* content_type,
GBytes* bytes
)
Description [src]
Set the request body of a SoupMessage
from GBytes
.
If content_type
is NULL
and bytes
is not NULL
the Content-Type header will
not be changed if present.
The request body needs to be set again in case msg
is restarted
(in case of redirection or authentication).
Parameters
content_type |
const char* |
MIME Content-Type of the body, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
bytes |
GBytes |
A |
|
The argument can be NULL . | |
The data is owned by the caller of the function. |