http_extensions_base_url 0.1.2
http_extensions_base_url: ^0.1.2

Dart native js
Flutter Android iOS web

An http extension that adds base url to requests with a relative path.

http_extensions : base url #

An [http extension] that adds base url to requests with a relative path.

Usage #

final client = ExtendedClient(
  inner: Client(),
  extensions: [
    BaseUrlExtension(
        logger: Logger("BaseUrl"),
        defaultOptions: BaseUrlOptions(
          url: Uri.parse("http://flutter.dev") // The base url that is appended to the relative paths.
        ),
  ],
);
0
likes
90
pub points
51%
popularity

An http extension that adds base url to requests with a relative path.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

alois.deniel@gmail.com

License

MIT (LICENSE)

Dependencies

http, http_extensions, logging, meta

More

Packages that depend on http_extensions_base_url