Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now available in preview.

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>
}