HTTP
// Simple GET request
http( "https://api.example.com/data" )
.invoke()
.ifSuccess( result -> {
// Handle successful response
} )
.ifError( error -> {
// Handle error response
} )
// Invoke and get the result immediately, throwing an exception on error
result = http( "https://api.example.com/data" )
.invokeAndGet().
Method Signature
HTTP(URL=[string], connectionTimeout=[numeric], redirect=[boolean], httpVersion=[string], proxyServer=[string], proxyPort=[integer], proxyUser=[string], proxyPassword=[string], clientCert=[string], clientCertPassword=[string])Arguments
Argument
Type
Required
Description
Default
Examples
Related
Last updated
Was this helpful?
