Session.prefetchDns

Tells @session that an URI from the given @hostname may be requested shortly, and so the session can try to prepare by resolving the domain name in advance, in order to work more quickly once the URI is actually requested.

If @cancellable is non-%NULL, it can be used to cancel the resolution. @callback will still be invoked in this case, with a status of %SOUP_STATUS_CANCELLED.

class Session
void
prefetchDns

Parameters

hostname string

a hostname to be resolved

cancellable Cancellable

a #GCancellable object, or %NULL

callback SoupAddressCallback

callback to call with the result, or %NULL

userData void*

data for @callback

Meta

Since

2.38