rest library

Jetleaf REST sub-library

This sub-library defines the REST client abstraction of the jetleaf_web package.

Importing package:jetleaf_web/rest.dart exposes APIs for building, executing, and intercepting REST requests, along with request and response representations and execution infrastructure.

This library is intended for outbound HTTP communication and does not include server-side request handling concerns.

Classes

RequestSpec
Defines the contract for building and executing configurable HTTP requests in a fluent, chainable manner.
RestClient
Defines the builder interface for constructing and configuring RequestSpec instances used in the JetLeaf REST client framework.
RestExecutor
Defines the primary abstraction for executing HTTP requests within the JetLeaf client-side ecosystem.
RestHttpRequest
Defines the abstraction for a client-side HTTP request, representing a request being prepared, configured, and executed by a RestCreator.
RestHttpResponse
Represents the HTTP response returned from executing a RestHttpRequest.
RestInterceptor
Defines the interceptor interface used to customize and extend the behavior of REST client request execution within the JetLeaf framework.

Typedefs

RequestCallback = Future<void> Function(RestHttpRequest request)
A functional interface representing a callback used to prepare an HTTP request.
ResponseExtractor<T> = Future<T> Function(RestHttpResponse response)
A functional interface for asynchronously extracting and transforming data from a RestHttpResponse.