Skip to content

Url.variables.make

fx-fetch


fx-fetch / Url / make

const make: (…a) => Option<Url>

Defined in: packages/fx-fetch/src/Url/make.ts:45

Creates an immutable Url object. Returns Option.none() if the input is invalid.

…[Input]

Option<Url>

import { Url } from 'fx-fetch';
import { Option } from 'effect';
const urlOption = Url.make('https://api.example.com');
if (Option.isSome(urlOption)) {
const url = urlOption.value;
}

0.1.0