Class RobustHTTPClient

java.lang.Object
org.jenkinsci.plugins.workflowhttp.cps.RobustHTTPClient
All Implemented Interfaces:
Serializable

public final class RobustHTTPClient extends Object implements Serializable
Utility to make HTTP connections with protection against transient failures.
See Also:
  • Constructor Details

    • RobustHTTPClient

      public RobustHTTPClient()
      Creates a client configured with reasonable defaults from system properties. THIS IS A ADAPTED COPY OF https://github.com/jenkinsci/apache-httpcomponents-client-4-api-plugin but uses httpclient5 and retries on all errors

      This constructor should be run in the Jenkins master. To make requests from an agent JVM, create a final field of this type in your MasterToSlaveCallable or similar; set it with a field initializer (run in the callable’s constructor on the master), letting the agent deserialize the configuration.

  • Method Details