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

## matchers.http.UriEncodedString class

Convenience matcher to treat the string as a uri encoded string - useful in `path` segments.

During matching, the actual value is decoded with `decodeUriComponent()` and passed to the child matcher.

**Signature:**

```typescript
export declare class UriEncodedString extends AnyMatcher
```

**Extends:** AnyMatcher

## Constructors

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

Constructor

</th><th>

Modifiers

</th><th>

Description

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

[(constructor)(child)](./case-definition-dsl.matchers.http.uriencodedstring._constructor_.md)

</td><td>

</td><td>

Convenience matcher to treat the string as a uri encoded string - useful in `path` segments.

During matching, the actual value is decoded with `decodeUriComponent()` and passed to the child matcher.

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

</td><td>

</td><td>

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

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