Python 3.9 is now generally available.

Module: google.appengine.api.urlfetch

URL downloading API.

Classes

class ConnectionClosedError: The target server prematurely closed the connection.

class DNSLookupFailedError: The DNS lookup for a URL failed.

class DeadlineExceededError: The URL was not fetched because the deadline was exceeded.

class DownloadError: The URL could not be retrieved.

class Error: Base URL fetcher error type.

class HTTPMessageWrapper: Basic message object.

class InternalTransientError: An internal transient error occurred.

class InvalidMethodError: An invalid value was provided for method.

class InvalidURLError: The URL given was empty or invalid.

class MalformedReplyError: The target server returned an invalid HTTP response.

class PayloadTooLargeError: The request payload exceeds the limit.

class SSLCertificateError: An invalid server certificate was presented.

class TooManyRedirectsError: follow_redirects was set to True, and the redirect limit was hit.

Functions

CreateHTTPHeaders(...): Creates HTTPHeaders that are compatible with both Python 2 or Python 3.

Fetch(...): Fetches the given HTTP url, blocking until the result is returned.

create_rpc(...): Creates an RPC object for use with the URL Fetch API.

fetch(...): Fetches the given HTTP url, blocking until the result is returned.

get_default_fetch_deadline(...): Gets the default value for create_rpc()'s deadline parameter.

make_fetch_call(...): Executes the RPC call to fetch a given HTTP URL.

set_default_fetch_deadline(...): Sets the default value for create_rpc()'s deadline parameter.

DELETE 5
GET 1
HEAD 3
MAX_REDIRECTS 5
PATCH 6
POST 2
PUT 4