{8.2.0-new} Request Headers
Per-client or per-request headers can be specified using the following methods:
{@link oajr.client2.RestClientBuilder#headers(Object...) headers(Object...)} allows you to pass in a variety of header objects, and {@link oajr.client2.RestClientBuilder#headerPairs(Object...) headerPairs(Object...)} allows you to specify several headers in a compact fashion.
Additionally, methods are provided on the client builder and per request for all standard HTTP headers such as {@link oajr.client2.RestClientBuilder#authorization(Object) authorization(Object)}.
The supplier methods are particularly useful for header values whose values may change over time (such as
The {@link oaj.httppart.HttpPartSchema} API allows you to define OpenAPI schemas to POJO data structures on request headers.
The methods with {@link oaj.AddFlag} parameters allow you to control whether new headers get appended, prepended, or replace existing headers with the same name.