base_uri 0.1.0 copy "base_uri: ^0.1.0" to clipboard
base_uri: ^0.1.0 copied to clipboard

outdated

A tiny wrapper around Uri to easily define a base uri

base_uri #

A tiny wrapper around Uri to easily define a base uri. Supports api versions.

Getting Started #

Create a base Uri

final BASE_URI = BaseUri(
  scheme: 'https',
  host: 'example.com',
  version: 'v1',
);

then use it accross your app

BASE_URI.useWith('/path'); // https://example.com/v1/path
BASE_URI.useWith('/path', queryParametes: {'test': 'yes'}); // https://example.com/v1/path?test=yes
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A tiny wrapper around Uri to easily define a base uri

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on base_uri