Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::HttpDirectResponse.
Static HTTP response object to be returned.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bytes_body
def bytes_body() -> ::String
-
(::String) — Optional. Response body as bytes. Maximum body size is 4096B.
Note: The following fields are mutually exclusive:
bytes_body
,string_body
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#bytes_body=
def bytes_body=(value) -> ::String
-
value (::String) — Optional. Response body as bytes. Maximum body size is 4096B.
Note: The following fields are mutually exclusive:
bytes_body
,string_body
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. Response body as bytes. Maximum body size is 4096B.
Note: The following fields are mutually exclusive:
bytes_body
,string_body
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#status
def status() -> ::Integer
- (::Integer) — Required. Status to return as part of HTTP Response. Must be a positive integer.
#status=
def status=(value) -> ::Integer
- value (::Integer) — Required. Status to return as part of HTTP Response. Must be a positive integer.
- (::Integer) — Required. Status to return as part of HTTP Response. Must be a positive integer.
#string_body
def string_body() -> ::String
-
(::String) — Optional. Response body as a string. Maximum body length is 1024
characters.
Note: The following fields are mutually exclusive:
string_body
,bytes_body
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#string_body=
def string_body=(value) -> ::String
-
value (::String) — Optional. Response body as a string. Maximum body length is 1024
characters.
Note: The following fields are mutually exclusive:
string_body
,bytes_body
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. Response body as a string. Maximum body length is 1024
characters.
Note: The following fields are mutually exclusive:
string_body
,bytes_body
. If a field in that set is populated, all other fields in the set will automatically be cleared.