{8.2.0-new} Response Headers
Response headers are accessed through the following methods:
Unlike {@link oajr.client2.RestResponse#getFirstHeader(String)} and {@link oajr.client2.RestResponse#getLastHeader(String)}, the {@link oajr.client2.RestResponse#getHeader(String)}
method returns an empty {@link oajr.client2.RestResponseHeader} object instead of returning
The {@link oajr.client2.RestResponseHeader} class extends from the HttpClient {@link org.apache.http.Header} class and provides several convenience methods:
The {@link oajr.client2.RestResponseHeader#schema(HttpPartSchema)} method allows you to perform parsing of OpenAPI formats for header parts.
Assertion methods are also provided for fluent-style calls:
Note how in the following example, the fluent assertion returns control to the {@link oajr.client2.RestResponse} object after the assertion has been completed: