[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/core](../../README) / [http](../README) / uri

# Function: uri()

> **uri**(`value?`): [`Uri`](../classes/Uri)

Defined in: [http/Uri.ts:488](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/http/Uri.ts#L488)

Fluent URI helper. Pass a URL string to build from it, or call with no arguments to start
from the current request URL.

## Parameters

### value?

`string` \| [`Uri`](../classes/Uri)

## Returns

[`Uri`](../classes/Uri)

## Example

```ts
uri("https://example.com/p?x=1").withQuery({ x: 2 }).value();
uri().withoutQuery(["page"]).value();          // current URL, page param dropped
uri().intended("/dashboard").redirect();       // redirect to the stored intended URL
```
