Performs an HTTP request, and returns a response object.
Usage example:
def response = httpRequest 'http://localhost:8080/jenkins/api/json?pretty=true' println("Status: "+response.status) println("Content: "+response.content)
If Jenkins restarts after the HTTP request is made, but before the HTTP response is received, the HTTP request fails.
The methods of the response object are: