<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [matchers](./case-definition-dsl.matchers.md) &gt; [http](./case-definition-dsl.matchers.http.md) &gt; [HttpResponse](./case-definition-dsl.matchers.http.httpresponse.md)

## matchers.http.HttpResponse class

Matches any HTTP Response with the provided properties

**Signature:**

```typescript
export declare class HttpResponse extends AnyMatcher
```

**Extends:** AnyMatcher

## Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[(constructor)(responseExample)](./case-definition-dsl.matchers.http.httpresponse._constructor_.md)

</td><td>

</td><td>

Matches any HTTP Response with the provided properties

</td></tr>
</tbody></table>

## Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[body?](./case-definition-dsl.matchers.http.httpresponse.body.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

_(Optional)_

</td></tr>
<tr><td>

[headers?](./case-definition-dsl.matchers.http.httpresponse.headers.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

_(Optional)_

</td></tr>
<tr><td>

[status](./case-definition-dsl.matchers.http.httpresponse.status.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

</td></tr>
<tr><td>

[uniqueName?](./case-definition-dsl.matchers.http.httpresponse.uniquename.md)

</td><td>

`readonly`

</td><td>

string

</td><td>

_(Optional)_

</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[toJSON()](./case-definition-dsl.matchers.http.httpresponse.tojson.md)

</td><td>

</td><td>

For non-TypeScript implementations (see `AnyMatcher.toJSON`<!-- -->)

</td></tr>
</tbody></table>
