BasicAuthHeaderValue
Matches the value part of a basic auth header with the supplied username and password - useful in conjunction with the StateVariable matcher.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.http.BasicAuthHeaderValue(username: any, password: any)
Parameters
Name | Type | Description |
---|---|---|
username | any | The username for this basic auth header. |
password | any | The password for this basic auth password. |
import io.contract_testing.contractcase.definitions.matchers.http.BasicAuthHeaderValue;
new BasicAuthHeaderValue(java.lang.Object username, java.lang.Object password);
Parameters
Name | Type | Description |
---|---|---|
username | java.lang.Object | The username for this basic auth header. |
password | java.lang.Object | The password for this basic auth password. |