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

## matchers.http.BasicAuthHeaderValue class

Matches the value part of a basic auth header with the supplied username and password - useful in conjunction with the StateVariable matcher

**Signature:**

```typescript
export declare class BasicAuthHeaderValue extends StringPrefix
```

**Extends:** [StringPrefix](./case-definition-dsl.matchers.strings.stringprefix.md)

## Constructors

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

Constructor

</th><th>

Modifiers

</th><th>

Description

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

[(constructor)(username, password)](./case-definition-dsl.matchers.http.basicauthheadervalue._constructor_.md)

</td><td>

</td><td>

Constructs a new instance of the `BasicAuthHeaderValue` class

</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.basicauthheadervalue.tojson.md)

</td><td>

</td><td>

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

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