Commit a90c442d authored by Carlos Garcia Campos's avatar Carlos Garcia Campos
Browse files

message: make soup_message_set_method public

It's a public readwrite property, so there no reason for the getter to
be private.
parent b24cacb8
......@@ -20,6 +20,7 @@ soup_message_get_http_version
soup_message_get_uri
soup_message_set_uri
soup_message_get_method
soup_message_set_method
soup_message_get_status
soup_message_get_reason_phrase
<SUBSECTION>
......
......@@ -116,9 +116,6 @@ GInputStream *soup_message_get_request_body_stream (SoupMessage *ms
void soup_message_set_reason_phrase (SoupMessage *msg,
const char *reason_phrase);
void soup_message_set_method (SoupMessage *msg,
const char *method);
void soup_message_set_http_version (SoupMessage *msg,
SoupHTTPVersion version);
......
......@@ -2682,6 +2682,13 @@ soup_message_set_reason_phrase (SoupMessage *msg, const char *reason_phrase)
g_object_notify_by_pspec (G_OBJECT (msg), properties[PROP_REASON_PHRASE]);
}
/**
* soup_message_set_method:
* @msg: a #SoupMessage
* @method: the value to set
*
* Set @msg's HTTP method to @method.
*/
void
soup_message_set_method (SoupMessage *msg,
const char *method)
......
......@@ -158,6 +158,10 @@ SoupMessagePriority soup_message_get_priority (SoupMessage *msg);
SOUP_AVAILABLE_IN_ALL
const char *soup_message_get_method (SoupMessage *msg);
SOUP_AVAILABLE_IN_ALL
void soup_message_set_method (SoupMessage *msg,
const char *method);
SOUP_AVAILABLE_IN_ALL
SoupStatus soup_message_get_status (SoupMessage *msg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment