networkRestriction

open fun networkRestriction(@NonNull networkRestriction: NetworkRestriction): HttpRequest.Builder

Restrict the request to the specified network types. If none of the specified network types is available, the download fails with a connection error. Default is allowed to all network types