# Google Cloud Web Security Scanner V1 Client - Class VulnerableHeaders (1.2.0)

1.2.0 (latest) 1.1.2 1.0.5 0.8.5 0.7.18 Reference documentation and code samples for the Google Cloud Web Security Scanner V1 Client class VulnerableHeaders.

Information about vulnerable or missing HTTP Headers.

Generated from protobuf message `google.cloud.websecurityscanner.v1.VulnerableHeaders`

## Namespace

Google \\ Cloud \\ WebSecurityScanner \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ headers` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.VulnerableHeaders.Header>` List of vulnerable headers. |
| `↳ missing_headers` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.VulnerableHeaders.Header>` List of missing headers. |

### getHeaders

List of vulnerable headers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.VulnerableHeaders.Header>` |   |

### setHeaders

List of vulnerable headers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.VulnerableHeaders.Header>` |

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

### getMissingHeaders

List of missing headers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.VulnerableHeaders.Header>` |   |

### setMissingHeaders

List of missing headers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.VulnerableHeaders.Header>` |

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