@NoImplement
public interface HttpResponseInterceptor
Result. This would allow it to handle responses from SaaS that don't
signal errors with explicit response status or change the response content, reasonPhrase and even a status code if needed.| Modifier and Type | Method and Description |
|---|---|
default org.mule.runtime.http.api.domain.message.response.HttpResponse |
intercept(HttpRequest httpRequest,
org.mule.runtime.http.api.domain.message.response.HttpResponse httpResponse)
Process an
HttpResponse and generate a new one or return the one provided. |
default org.mule.runtime.http.api.domain.message.response.HttpResponse intercept(HttpRequest httpRequest, org.mule.runtime.http.api.domain.message.response.HttpResponse httpResponse)
HttpResponse and generate a new one or return the one provided.httpRequest - the HTTP request that was executed against the server.httpResponse - the server response to be intercepted. Entity's content could not be read more than once, so
implementations should address this when content needs to be accessed more than once.HttpResponse.Copyright © 2022. All rights reserved.