Python 3.9 is now generally available.

Module: google.appengine.api.urlfetch_stub

Stub version of the urlfetch API, based on httplib.

Classes

class URLFetchServiceStub: Stub version of the urlfetch API to be used with apiproxy_stub_map.

Functions

GetHeaders(...): Helper to get headers between python versions.

MAX_REDIRECTS 5
MAX_REQUEST_SIZE 10485760
MAX_RESPONSE_SIZE 33554432
PRESERVE_ON_REDIRECT

{
 'GET',
 'HEAD'
}

REDIRECT_STATUSES

{
 <HTTPStatus.FOUND: 302>,
 <HTTPStatus.MOVED_PERMANENTLY: 301>,
 <HTTPStatus.SEE_OTHER: 303>,
 <HTTPStatus.TEMPORARY_REDIRECT: 307>
}