http_extensions_base_url 1.0.0
http_extensions_base_url: ^1.0.0 copied to clipboard

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
120
pub points
52%
popularity

Publisher

Unknown

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, http_extensions, logging, meta

More

Packages that depend on http_extensions_base_url