Package com.mastercard.developer.utils
Class FeignUtils
java.lang.Object
com.mastercard.developer.utils.FeignUtils
Utility class for working with Feign objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringreadHeader(feign.Response response, String name) Return the value of an HTTP request header.static feign.ResponseremoveHeader(feign.Response response, String name) Delete an HTTP response header.static voidupdateHeader(feign.RequestTemplate request, String name, String value) Update the value of an HTTP request header.static feign.ResponseupdateHeader(feign.Response response, String name, String value) Update the value of an HTTP response header and return the updated response.
-
Method Details
-
updateHeader
Update the value of an HTTP request header. Delete the header if the value is null. -
updateHeader
Update the value of an HTTP response header and return the updated response. Delete the header if the value is null. -
readHeader
Return the value of an HTTP request header. -
removeHeader
Delete an HTTP response header.
-