• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebKit2-7600.1.25/UIProcess/API/gtk/

Lines Matching refs:response

33  * @Short_description: Represents a URI response
63 WebKitURIResponse* response = WEBKIT_URI_RESPONSE(object);
67 g_value_set_string(value, webkit_uri_response_get_uri(response));
70 g_value_set_uint(value, webkit_uri_response_get_status_code(response));
73 g_value_set_uint64(value, webkit_uri_response_get_content_length(response));
76 g_value_set_string(value, webkit_uri_response_get_mime_type(response));
79 g_value_set_string(value, webkit_uri_response_get_suggested_filename(response));
94 * The URI for which the response was made.
100 _("The URI for which the response was made."),
106 * The status code of the response as returned by the server.
112 _("The status code of the response as returned by the server."),
119 * The expected content length of the response.
125 _("The expected content length of the response."),
132 * The MIME type of the response.
138 _("The MIME type of the response"),
145 * The suggested filename for the URI response.
151 _("The suggested filename for the URI response"),
158 * @response: a #WebKitURIResponse
162 const gchar* webkit_uri_response_get_uri(WebKitURIResponse* response)
164 g_return_val_if_fail(WEBKIT_IS_URI_RESPONSE(response), 0);
166 response->priv->uri = response->priv->resourceResponse.url().string().utf8();
167 return response->priv->uri.data();
172 * @response: a #WebKitURIResponse
179 * Returns: the status code of @response
181 guint webkit_uri_response_get_status_code(WebKitURIResponse* response)
183 g_return_val_if_fail(WEBKIT_IS_URI_RESPONSE(response), SOUP_STATUS_NONE);
185 return response->priv->resourceResponse.httpStatusCode();
190 * @response: a #WebKitURIResponse
195 * Returns: the expected content length of @response.
197 guint64 webkit_uri_response_get_content_length(WebKitURIResponse* response)
199 g_return_val_if_fail(WEBKIT_IS_URI_RESPONSE(response), 0);
201 return response->priv->resourceResponse.expectedContentLength();
206 * @response: a #WebKitURIResponse
210 const gchar* webkit_uri_response_get_mime_type(WebKitURIResponse* response)
212 g_return_val_if_fail(WEBKIT_IS_URI_RESPONSE(response), 0);
214 response->priv->mimeType = response->priv->resourceResponse.mimeType().utf8();
215 return response->priv->mimeType.data();
220 * @response: a #WebKitURIResponse
222 * Get the suggested filename for @response, as specified by
229 const gchar* webkit_uri_response_get_suggested_filename(WebKitURIResponse* response)
231 g_return_val_if_fail(WEBKIT_IS_URI_RESPONSE(response), 0);
233 if (response->priv->resourceResponse.suggestedFilename().isEmpty())
236 response->priv->suggestedFilename = response->priv->resourceResponse.suggestedFilename().utf8();
237 return response->priv->suggestedFilename.data();