withData

open fun withData(header: String, value: Any?): HttpHeaders

Convert value to OData 4.0 JSON format, then set a header with the JSON-encoded value as a data URI with media type "application/json" and base64-encoded data.

Return

This object.

Parameters

header

Header name.

value

(nullable) Header value.