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 \ V1Methods
__construct
Constructor.
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
↳ 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.
string
setId
A unique identifier that matches the request ID.
var
string
$this
getStatus
Status of http response, e.g. "200 OK".
string
setStatus
Status of http response, e.g. "200 OK".
var
string
$this
getStatusCode
Status code of http response, e.g. 200.
int
setStatusCode
Status code of http response, e.g. 200.
var
int
$this
getBody
The HTTP 1.1 response body.
string
setBody
The HTTP 1.1 response body.
var
string
$this
getHeaders
The HTTP response headers.
setHeaders
The HTTP response headers.
$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.
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.
var
int|string
$this