Url.variables.make
Variable: make()
Section titled “Variable: make()”
constmake: (…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.
Parameters
Section titled “Parameters”…[Input]
Returns
Section titled “Returns”Option<Url>
Example
Section titled “Example”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