Okta Java SDK - Set Request header/Retrieve Response header

We are using Okta Java SDK, and we have a requirement to set the client ip address (x-forwarded-for) and to log the response header (x-forwarded-for) return by Okta.

But I don’t see any option to either set the header or retrieve the response header using SDK. How can I implement this or is there any way to customize the okta Client to achieve this ?

For setting the header, there is an option as below, but that would mean not using the API objects (User, Factor, Group etc)

oktaClient.http().addHeaderParameter("x-forwarded-for", "ip-address");