encoding property

String? encoding
final

The encoding the requester declared, or null if none.

A lenient MIME display string (e.g. application/json). The byte/opaque encoding is never crystallized into an Encoding object on this field -- it is exposed as a String? display view. Null denotes an absent encoding (the requester set none), distinct from a present-but-empty encoding, which reads as an empty string.

Delivered length-carried, so an interior NUL in the rendered MIME string or its schema survives rather than truncating at the seam. Use encodingBytes for the exact data.

Implementation

final String? encoding;