Function: webSegment()
webSegment(
constraints?):Arbitrary<string>
Defined in: packages/fast-check/src/arbitrary/webSegment.ts:31
For internal segment of an URI (web included)
According to RFC 3986
eg.: In the url https://github.com/dubzzz/fast-check/, dubzzz and fast-check are segments
Parameters
| Parameter | Type | Description |
|---|---|---|
constraints | WebSegmentConstraints | Constraints to apply when building instances (since 2.22.0) |
Returns
Arbitrary<string>
Remarks
Since 1.14.0