Google Cloud Api Hub V1 Client - Class HttpResponse (0.3.0)

Reference documentation and code samples for the Google Cloud Api Hub V1 Client class HttpResponse.

An aggregation of HTTP responses.

Generated from protobuf message google.cloud.apihub.v1.HttpOperationDetails.HttpResponse

Namespace

Google \ Cloud \ ApiHub \ V1 \ HttpOperationDetails

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ headers array|Google\Protobuf\Internal\MapField

Optional. Unordered map from header name to header metadata

↳ response_codes array|Google\Protobuf\Internal\MapField

Optional. Map of status code to observed count

getHeaders

Optional. Unordered map from header name to header metadata

Returns
Type Description
Google\Protobuf\Internal\MapField

setHeaders

Optional. Unordered map from header name to header metadata

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getResponseCodes

Optional. Map of status code to observed count

Returns
Type Description
Google\Protobuf\Internal\MapField

setResponseCodes

Optional. Map of status code to observed count

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this