Reference documentation and code samples for the Google Cloud Apigee Connect V1 Client class HttpRequest.
The proto definition of http request.
Generated from protobuf message google.cloud.apigeeconnect.v1.HttpRequest
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ id |
string
A unique identifier for the request. |
↳ method |
string
The HTTP request method. Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE". |
↳ url |
Google\Cloud\ApigeeConnect\V1\Url
The HTTP request URL. |
↳ headers |
array<Google\Cloud\ApigeeConnect\V1\Header>
The HTTP request headers. |
↳ body |
string
HTTP request body. |
getId
A unique identifier for the request.
Returns | |
---|---|
Type | Description |
string |
setId
A unique identifier for the request.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getMethod
The HTTP request method.
Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
Returns | |
---|---|
Type | Description |
string |
setMethod
The HTTP request method.
Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUrl
The HTTP request URL.
Returns | |
---|---|
Type | Description |
Google\Cloud\ApigeeConnect\V1\Url|null |
hasUrl
clearUrl
setUrl
The HTTP request URL.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\ApigeeConnect\V1\Url
|
Returns | |
---|---|
Type | Description |
$this |
getHeaders
The HTTP request headers.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setHeaders
The HTTP request headers.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\ApigeeConnect\V1\Header>
|
Returns | |
---|---|
Type | Description |
$this |
getBody
HTTP request body.
Returns | |
---|---|
Type | Description |
string |
setBody
HTTP request body.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |