# Function: webSegment()

> > **webSegment**(`constraints?`): [`Arbitrary`](../classes/Arbitrary.md)\<`string`\>

# Function: webSegment()

> **webSegment**(`constraints?`): [`Arbitrary`](../classes/Arbitrary.md)\<`string`\>

Defined in: [packages/fast-check/src/arbitrary/webSegment.ts:31](https://github.com/dubzzz/fast-check/blob/4663db899d411b24434189b8e560b5ecefc93f23/packages/fast-check/src/arbitrary/webSegment.ts#L31)

For internal segment of an URI (web included)

According to [RFC 3986](https://www.ietf.org/rfc/rfc3986.txt)

eg.: In the url `https://github.com/dubzzz/fast-check/`, `dubzzz` and `fast-check` are segments

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `constraints` | [`WebSegmentConstraints`](../interfaces/WebSegmentConstraints.md) | Constraints to apply when building instances (since 2.22.0) |

## Returns

[`Arbitrary`](../classes/Arbitrary.md)\<`string`\>

## Remarks

Since 1.14.0
