converter library
Jetleaf HTTP Message Converter sub-library
This sub-library provides HTTP message conversion utilities
for the jetleaf_web package.
Importing package:jetleaf_web/converter.dart exposes abstractions
and implementations for converting HTTP request and response bodies
between different formats, including JSON, XML, YAML, and form data.
The library includes converter registries, common implementations, and specialized Jetson converters.
Classes
-
AbstractHttpMessageConverter<
T> - Abstract base class implementing common HttpMessageConverter functionality.
- ByteArrayHttpMessageConverter
-
JetLeaf’s built-in AbstractHttpMessageConverter for handling
raw binary data with media type
application/octet-stream. - FormHttpMessageConverter
- AbstractHttpMessageConverter implementation for handling HTML form data serialization and deserialization.
-
HttpMessageConverter<
T> - Strategy interface for converting between HTTP messages and Dart objects.
- HttpMessageConverterRegistrar
- Strategy interface for programmatically registering HttpMessageConverter instances.
- HttpMessageConverterRegistry
- A registry for managing and organizing HttpMessageConverter instances.
- HttpMessageConverters
- A composite registry and container for managing HttpMessageConverter pods.
- Jetson2HttpMessageConverter
- A high-priority HTTP message converter that uses Jetson’s ObjectMapper to read and write JSON request and response bodies.
- Jetson2XmlHttpMessageConverter
- A high-priority HTTP message converter that uses Jetson’s XML-capable ObjectMapper to read and write XML request and response bodies.
- Jetson2YamlHttpMessageConverter
- A high-priority HTTP message converter that uses Jetson’s YAML-capable ObjectMapper to read and write YAML request and response bodies.
- StringHttpMessageConverter
-
JetLeaf’s built-in AbstractHttpMessageConverter implementation
for handling plain text (
text/plain) HTTP payloads.