base_api library

Generic API abstractions (address, content, control data, exceptions).

Usage: import package:datatools/base_api.dart

Classes

Anchor
An interface for a resource anchor.
Body
An interface for accessing content body as String, bytes or JSON objects.
Content
Content represents a data entity.
Controlled<C>
An interface to set control data to a client (ie. HTTP client or fetcher).
Head represents meta data for some content.

Enums

OriginFailure
Common failure types related to OriginException.

Typedefs

UriResolver = Uri Function(Uri reference)
A function to resolve an absolute URI from an URI reference.

Exceptions / Errors

ApiException
An exception occurred when accessing an API.
ClientException
An exception occurred when accessing an API and caused by client-side code.
OriginException
An exception containing a failure message as a response from an API origin.