webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
webkitpy.common.system.urlfetcher.UrlFetcher Class Reference
Inheritance diagram for webkitpy.common.system.urlfetcher.UrlFetcher:

Public Member Functions

def __init__ (self, filesystem)
 
def fetch (self, url)
 
def fetch_into_file (self, url)
 

Detailed Description

Class with restricted interface to fetch URLs (makes testing easier)

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.common.system.urlfetcher.UrlFetcher.__init__ (   self,
  filesystem 
)

Member Function Documentation

◆ fetch()

def webkitpy.common.system.urlfetcher.UrlFetcher.fetch (   self,
  url 
)
Fetches the contents of the URL as a string.

◆ fetch_into_file()

def webkitpy.common.system.urlfetcher.UrlFetcher.fetch_into_file (   self,
  url 
)
Fetches the contents of the URL into a temporary file and return the filename.

This is the equivalent of urllib.retrieve() except that we don't return any headers.

The documentation for this class was generated from the following file: