Class HttpClient
- java.lang.Object
-
- com.formkiq.lambda.runtime.graalvm.HttpClient
-
public class HttpClient extends java.lang.ObjectHttp Service using the build in JavaHttpURLConnectionlibrary.
-
-
Constructor Summary
Constructors Constructor Description HttpClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpResponseget(java.lang.String url)Send 'Get' request.static HttpResponsepost(java.lang.String url, java.lang.String body)Send Http POST.
-
-
-
Method Detail
-
get
public static HttpResponse get(java.lang.String url) throws java.io.IOException
Send 'Get' request.- Parameters:
url-String- Returns:
HttpResponse- Throws:
java.io.IOException- IOException
-
post
public static HttpResponse post(java.lang.String url, java.lang.String body) throws java.io.IOException
Send Http POST.- Parameters:
url-Stringbody-String- Returns:
HttpResponse- Throws:
java.io.IOException- IOException
-
-