fi.linuxbox.upcloud.http.spi.HTTP.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groovy-upcloud-http-spi Show documentation
Show all versions of groovy-upcloud-http-spi Show documentation
Groovy UpCloud HTTP provides SPIs for HTTP
package fi.linuxbox.upcloud.http.spi
/**
* An interface which is implemented by the HTTP implementation.
*/
interface HTTP {
/**
* Returns the User-Agent string for this implementation.
*
* @return User-Agent string for this implementation.
*/
String getUserAgent()
/**
* Execute the HTTP exchange asynchronously.
*
*
* The request is described by the exchange, and the response must be sent to the callback in the exchange.
*
*
* @param exchange HTTP exchange to execute.
*/
void execute(final Exchange exchange)
}