class Http extends Message

Defines the HTTP configuration for an API service. It contains a list of [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method to one or more HTTP REST API methods.

Generated from protobuf message google.api.Http

Methods

__construct(array $data = NULL)

Constructor.

RepeatedField
getRules()

A list of HTTP configuration rules that apply to individual API methods.

$this
setRules(HttpRule[]|RepeatedField $var)

A list of HTTP configuration rules that apply to individual API methods.

bool
getFullyDecodeReservedExpansion()

When set to true, URL path parmeters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded.

$this
setFullyDecodeReservedExpansion(bool $var)

When set to true, URL path parmeters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded.

Details

at line 55
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type \Google\Api\HttpRule[]|\Google\Protobuf\Internal\RepeatedField $rules
      A list of HTTP configuration rules that apply to individual API methods.
      **NOTE:** All service configuration rules follow "last one wins" order.
@type bool $fully_decode_reserved_expansion
      When set to true, URL path parmeters will be fully URI-decoded except in
      cases of single segment matches in reserved expansion, where "%2F" will be
      left encoded.
      The default behavior is to not decode RFC 6570 reserved characters in multi
      segment matches.

}

at line 67
RepeatedField getRules()

A list of HTTP configuration rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

Generated from protobuf field repeated .google.api.HttpRule rules = 1;

Return Value

RepeatedField

at line 80
$this setRules(HttpRule[]|RepeatedField $var)

A list of HTTP configuration rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

Generated from protobuf field repeated .google.api.HttpRule rules = 1;

Parameters

HttpRule[]|RepeatedField $var

Return Value

$this

at line 98
bool getFullyDecodeReservedExpansion()

When set to true, URL path parmeters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded.

The default behavior is to not decode RFC 6570 reserved characters in multi segment matches.

Generated from protobuf field bool fully_decode_reserved_expansion = 2;

Return Value

bool

at line 114
$this setFullyDecodeReservedExpansion(bool $var)

When set to true, URL path parmeters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded.

The default behavior is to not decode RFC 6570 reserved characters in multi segment matches.

Generated from protobuf field bool fully_decode_reserved_expansion = 2;

Parameters

bool $var

Return Value

$this