A Gradle Plugin DSL Extension used to configure the HTTP plugin.
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
config(groovy.lang.Closure closure)Provides a global/shared configuration to be used by all HTTP calls that do not provide their own "config" block. |
|
void |
config(java.util.function.Consumer<groovyx.net.http.HttpObjectConfig> consumer) |
|
protected java.lang.Object |
getConfig() |
|
HttpLibrary |
getLibrary()Retrieves the configured library value as the HttpLibrary enum. |
|
void |
setLibrary(HttpLibrary value)Used to specify the HTTP client library with the HttpLibrary enum. |
|
void |
setLibrary(java.lang.String value)Used to specify the HTTP client library with a String representing the HttpLibrary enum. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Provides a global/shared configuration to be used by all HTTP calls that do not provide their own "config" block. See the HttpObjectConfig interface in the HttpBuilder-NG JavaDocs for details about the specific configuration.
closure - the configuration closureRetrieves the configured library value as the HttpLibrary enum.
Used to specify the HTTP client library with the HttpLibrary enum. If not specified, the CORE library is used.
value - the library to be usedUsed to specify the HTTP client library with a String representing the HttpLibrary enum. If not specified, the CORE library is used.
value - the library to be used