से कच्चे प्रतिक्रिया और यूआरएल को कैसे प्राप्त करें REST ClientHTTP BuilderHttpResponseDecorator देता है। मैं इसके बारे में कच्ची प्रतिक्रिया कैसे प्राप्त कर सकता हूं (लॉगिंग उद्देश्यों के लिए)?HttpResponseDecorator
संपादित करें (कुछ कोड काम हो सकता है):
withRest(uri: domainName) {
def response = post(path: 'wsPath', query: [q:'test'])
if (!response.success) {
log.error "API call failed. HTTP status: $response.status"
// I want to log raw response and URL constructed here
}
जब मैं ऊपर, मुझे मिल किया था "java.io.IOException:। का प्रयास बंद स्ट्रीम से पढ़ने" –