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. If you have feedback or questions as you navigate the site, click Send Feedback.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.

The HttpTransport Class

Stay organized with collections Save and categorize content based on your preferences.

The HttpTransport class provides a transport for communicating with HTTP servers.

HttpTransport is provided by the protorpc.transport module.


class HttpTransport (service_url, protocol=protobuf)

Instantiates an HttpTransport object.

The URL where the service is located. All communication via the transport will go to methods under this URL.
The protocol implementation. Must implement encode_message() and decode_message(), which are available in outside other protocols, such as protorpc.protojson, protorpc.protobuf, and protorpc.protojson.