fkrauthan
02/16/2022, 8:46 PMktor-client
question. Is the
scope.receivePipeline.intercept(HttpReceivePipeline.State) {
always getting executed even if the API call failed (e.g. Invalid Host or Timeout)? If yes what value would context.response.status.value
contain? And if not what pipeline do I need to adjust to to catch that?Javier
02/17/2022, 12:02 AMfkrauthan
02/17/2022, 12:33 AMcontext.response.status.value
will fail?Aleksei Tirman [JB]
02/17/2022, 2:26 PMreceivePipeline
won't be executed. To catch failures and normal responses you can intercept the HttpRequestPipeline
using any phase before Send
:
client.requestPipeline.intercept(HttpRequestPipeline.Before) {}
fkrauthan
02/17/2022, 7:11 PM