AppleOpenSource/WebKit2-7609.3.5.1.3/Shared/API/glib/WebKitURIResponse.cpp
/**
 * webkit_uri_response_get_http_headers:
 * @response: a #WebKitURIResponse
 *
 * Get the HTTP headers of a #WebKitURIResponse as a #SoupMessageHeaders.
 *
 * Returns: (transfer none): a #SoupMessageHeaders with the HTTP headers of @response
 *    or %NULL if @response is not an HTTP response.
 * Since: 2.6
 */


Get the HTTP headers of a #WebKitURIResponse as a #SoupMessageHeaders.

(transfer none): a #SoupMessageHeaders with the HTTP headers of @response
or %NULL if @response is not an HTTP response.
Get the HTTP headers of a #WebKitURIResponse as a #SoupMessageHeaders . ( transfer none ) : a #SoupMessageHeaders with the HTTP headers of @response or %NULL if @response is not an HTTP response .
SoupMessageHeaders* webkit_uri_response_get_http_headers(WebKitURIResponse* response)
{
    g_return_val_if_fail(WEBKIT_IS_URI_RESPONSE(response), nullptr);
    if (response->priv->httpHeaders)
        return response->priv->httpHeaders.get();
    if (!response->priv->resourceResponse.url().protocolIsInHTTPFamily())
        return nullptr;
    response->priv->httpHeaders.reset(soup_message_headers_new(SOUP_MESSAGE_HEADERS_RESPONSE));
    response->priv->resourceResponse.updateSoupMessageHeaders(response->priv->httpHeaders.get());
    return response->priv->httpHeaders.get();
}
SoupMessageHeaders * webkit_uri_response_get_http_headers ( WebKitURIResponse * response ) { g_return_val_if_fail ( WEBKIT_IS_URI_RESPONSE ( response ) , nullptr ) ; if ( response -> priv -> httpHeaders ) return response -> priv -> httpHeaders . get ( ) ; if ( ! response -> priv -> resourceResponse . url ( ) . protocolIsInHTTPFamily ( ) ) return nullptr ; response -> priv -> httpHeaders . reset ( soup_message_headers_new ( SOUP_MESSAGE_HEADERS_RESPONSE ) ) ; response -> priv -> resourceResponse . updateSoupMessageHeaders ( response -> priv -> httpHeaders . get ( ) ) ; return response -> priv -> httpHeaders . get ( ) ; }
webkit_uri_response_get_http_headers:
 @response: a #WebKitURIResponse
webkit_uri_response_get_http_headers : @response : a #WebKitURIResponse