Uses of Class
com.shri.restinpeace.interceptor.ShortCircuitResponse
Packages that use ShortCircuitResponse
-
Uses of ShortCircuitResponse in com.shri.restinpeace.interceptor
Methods in com.shri.restinpeace.interceptor that return ShortCircuitResponseModifier and TypeMethodDescriptionAdds a header value, in addition to any already added under the same name.static ShortCircuitResponseA200 OKresponse with a body.default ShortCircuitResponseRequestInterceptor.shortCircuit(RequestContext context) Called after every registered interceptor'sbeforeRequesthas run (in the same FIFO registration order asbeforeRequestitself) - returning a non-nullShortCircuitResponseskips the network call entirely and uses it as this call's response instead, decoded exactly as a real one would be (including throwingRestInPeaceHttpExceptionfor a non-2xx status).static ShortCircuitResponseA response with an arbitrary status and body.