Google Cloud Apigee Connect V1 Client - Class HttpRequest (2.0.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
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 Url

The HTTP request URL.

↳ headers array<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
Url|null

hasUrl

clearUrl

setUrl

The HTTP request URL.

Parameter
Name Description
var 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<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