Google Cloud Apigee Connect V1 Client - Class HttpResponse (2.0.2)

Reference documentation and code samples for the Google Cloud Apigee Connect V1 Client class HttpResponse.

The proto definition of http response.

Generated from protobuf message google.cloud.apigeeconnect.v1.HttpResponse

Namespace

Google \ Cloud \ ApigeeConnect \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id string

A unique identifier that matches the request ID.

↳ status string

Status of http response, e.g. "200 OK".

↳ status_code int

Status code of http response, e.g. 200.

↳ body string

The HTTP 1.1 response body.

↳ headers array<Header>

The HTTP response headers.

↳ content_length int|string

Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.

getId

A unique identifier that matches the request ID.

Returns
Type Description
string

setId

A unique identifier that matches the request ID.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatus

Status of http response, e.g. "200 OK".

Returns
Type Description
string

setStatus

Status of http response, e.g. "200 OK".

Parameter
Name Description
var string
Returns
Type Description
$this

getStatusCode

Status code of http response, e.g. 200.

Returns
Type Description
int

setStatusCode

Status code of http response, e.g. 200.

Parameter
Name Description
var int
Returns
Type Description
$this

getBody

The HTTP 1.1 response body.

Returns
Type Description
string

setBody

The HTTP 1.1 response body.

Parameter
Name Description
var string
Returns
Type Description
$this

getHeaders

The HTTP response headers.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setHeaders

The HTTP response headers.

Parameter
Name Description
var array<Header>
Returns
Type Description
$this

getContentLength

Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.

Returns
Type Description
int|string

setContentLength

Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.

Parameter
Name Description
var int|string
Returns
Type Description
$this