<!-- 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; [HttpRequest](./case-definition-dsl.matchers.http.httprequest.md)

## matchers.http.HttpRequest class

Matches any HTTP Request with the provided properties

**Signature:**

```typescript
export declare class HttpRequest extends AnyMatcher
```

**Extends:** AnyMatcher

## Constructors

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

Constructor

</th><th>

Modifiers

</th><th>

Description

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

[(constructor)(requestExample)](./case-definition-dsl.matchers.http.httprequest._constructor_.md)

</td><td>

</td><td>

Matches any HTTP Request 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.httprequest.body.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

_(Optional)_

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

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

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

_(Optional)_

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

[method](./case-definition-dsl.matchers.http.httprequest.method.md)

</td><td>

`readonly`

</td><td>

AnyStringMatcher

</td><td>

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

[path](./case-definition-dsl.matchers.http.httprequest.path.md)

</td><td>

`readonly`

</td><td>

AnyStringMatcher

</td><td>

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

[query?](./case-definition-dsl.matchers.http.httprequest.query.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

_(Optional)_

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

[uniqueName?](./case-definition-dsl.matchers.http.httprequest.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.httprequest.tojson.md)

</td><td>

</td><td>

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

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