diff options
author | Timm Bäder <mail@baedert.org> | 2016-07-21 22:42:26 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-02-21 17:01:47 +0100 |
commit | b1600bb0f3e7eb2446fa8951f2387c7a576dda08 (patch) | |
tree | 2c511cc52f8fb3d45660da320419dbc3851ce9bb | |
parent | da8c8349e68fe67619cc9f599eeee3285b545366 (diff) | |
download | librest-b1600bb0f3e7eb2446fa8951f2387c7a576dda08.tar.gz |
RestProxyCall: Document return value of _lookup_response_headers
-rw-r--r-- | rest/rest-proxy-call.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c index 834470d..5fba507 100644 --- a/rest/rest-proxy-call.c +++ b/rest/rest-proxy-call.c @@ -1248,6 +1248,9 @@ rest_proxy_call_sync (RestProxyCall *call, * * Get the string value of the header @header or %NULL if that header is not * present or there are no headers. + * + * Returns: (nullable): The string value of the header @header, or %NULL + * if no header with that name exists. */ const gchar * rest_proxy_call_lookup_response_header (RestProxyCall *call, @@ -1256,6 +1259,7 @@ rest_proxy_call_lookup_response_header (RestProxyCall *call, RestProxyCallPrivate *priv = GET_PRIVATE (call); g_return_val_if_fail (REST_IS_PROXY_CALL (call), NULL); + g_return_val_if_fail (header != NULL); if (!priv->response_headers) { |