Class HttpDirectResponse (0.7.0)

HttpDirectResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Static HTTP response object to be returned.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
string_body str
Optional. Response body as a string. Maximum body length is 1024 characters. This field is a member of oneof_ HttpBody.
bytes_body bytes
Optional. Response body as bytes. Maximum body size is 4096B. This field is a member of oneof_ HttpBody.
status int
Required. Status to return as part of HTTP Response. Must be a positive integer.