ResourceLoadingArgs.set_data method. Sets user provided data of the resource which is used if [IResourceLoadingCallback.resource_loading()](../../iresourceloadingcallback/resource_loading/#resourceloadingargs) returns [ResourceLoadingAction.USER_PROVIDED](../../resourceloadingaction/#USER_PROVIDED)....external resources into a document (ImageNameHandler). class...switch_condition == 'Google logo' : import requests image_data = requests...