0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class Http.

Specify the full URL of the HTTP request within "target".

Also specify any uploaded or downloaded file information within "source"
or "target".

Generated from protobuf message `google.backstory.Http`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ method` | `string` The HTTP request method (e.g. "GET", "POST", "PATCH", "DELETE"). |
| `↳ referral_url` | `string` The URL for the HTTP referer. |
| `↳ user_agent` | `string` The User-Agent request header which includes the application type, operating system, software vendor or software version of the requesting software user agent. |
| `↳ response_code` | `int` The response status code, for example 200, 302, 404, or 500. |

### getMethod

The HTTP request method
(e.g. "GET", "POST", "PATCH", "DELETE").

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setMethod

The HTTP request method
(e.g. "GET", "POST", "PATCH", "DELETE").

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReferralUrl

The URL for the HTTP referer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setReferralUrl

The URL for the HTTP referer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUserAgent

The User-Agent request header which includes the application type,
operating system, software vendor or software version of the requesting
software user agent.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUserAgent

The User-Agent request header which includes the application type,
operating system, software vendor or software version of the requesting
software user agent.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResponseCode

The response status code, for example
200, 302, 404, or 500.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setResponseCode

The response status code, for example
200, 302, 404, or 500.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |