Exemplo n.º 1
0
void ResourceHandle::prepareForURL(const KURL &url)
{
#ifdef HAVE_LIBSOUP_2_29_90
    GOwnPtr<SoupURI> soupURI(soup_uri_new(url.prettyURL().utf8().data()));
    if (!soupURI)
        return;
    soup_session_prepare_for_uri(ResourceHandle::defaultSession(), soupURI.get());
#endif
}
Exemplo n.º 2
0
void prefetchDNS(const String& hostname)
{
    #ifdef HAVE_LIBSOUP_2_29_3
    String uri = "http://"+hostname;
    SoupURI* soupUri = soup_uri_new(uri.utf8().data());
    soup_session_prepare_for_uri(ResourceHandle::defaultSession(), soupUri);
    soup_uri_free(soupUri);
    #endif
}
Exemplo n.º 3
0
void prefetchDNS(const String& hostname)
{
#ifdef HAVE_LIBSOUP_2_29_90
    String uri = "http://"+hostname;
    GOwnPtr<SoupURI> soupURI(soup_uri_new(uri.utf8().data()));
    // We may get invalid hostnames, so NULL-check here.
    if (!soupURI)
        return;
    soup_session_prepare_for_uri(ResourceHandle::defaultSession(), soupURI.get());
#endif
}