Google Cloud Apigee Connect V1 Client - Class HttpRequest (1.1.3)

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

Namespace

Google \ Cloud \ ApigeeConnect \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setId

A unique identifier for the request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMethod

The HTTP request method.

Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".

Returns
TypeDescription
string

setMethod

The HTTP request method.

Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUrl

The HTTP request URL.

Returns
TypeDescription
Google\Cloud\ApigeeConnect\V1\Url|null

hasUrl

clearUrl

setUrl

The HTTP request URL.

Parameter
NameDescription
var Google\Cloud\ApigeeConnect\V1\Url
Returns
TypeDescription
$this

getHeaders

The HTTP request headers.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setHeaders

The HTTP request headers.

Parameter
NameDescription
var array<Google\Cloud\ApigeeConnect\V1\Header>
Returns
TypeDescription
$this

getBody

HTTP request body.

Returns
TypeDescription
string

setBody

HTTP request body.

Parameter
NameDescription
var string
Returns
TypeDescription
$this