Class JythonHttpClient
java.lang.Object
com.inductiveautomation.ignition.common.script.builtin.http.JythonHttpClient
A Jython-optimized wrapper around the base
HttpClient
available in Java 11+. Mostly, through convenience
functions that make things easier to use from Jython.-
Method Summary
Modifier and TypeMethodDescriptiondeleteAsync
(org.python.core.PyObject[] pyArgs, String[] keywords) long
com.inductiveautomation.ignition.common.gson.Gson
getGson()
optionsAsync
(org.python.core.PyObject[] pyArgs, String[] keywords) parseCharset
(String contentType) patchAsync
(org.python.core.PyObject[] pyArgs, String[] keywords) requestAsync
(org.python.core.PyObject[] pyArgs, String[] keywords) void
setGson
(com.inductiveautomation.ignition.common.gson.Gson gson) toString()
traceAsync
(org.python.core.PyObject[] pyArgs, String[] keywords)
-
Method Details
-
parseCharset
public static Optional<Charset> parseCharset(String contentType) throws org.python.core.PyIgnoreMethodTag - Throws:
org.python.core.PyIgnoreMethodTag
-
head
- Throws:
IOException
-
headAsync
-
get
- Throws:
IOException
-
getAsync
-
post
- Throws:
IOException
-
postAsync
-
put
- Throws:
IOException
-
putAsync
-
patch
- Throws:
IOException
-
patchAsync
-
delete
- Throws:
IOException
-
deleteAsync
-
trace
- Throws:
IOException
-
traceAsync
-
options
- Throws:
IOException
-
optionsAsync
-
request
- Throws:
IOException
-
requestAsync
-
getCookieManager
-
getGson
public com.inductiveautomation.ignition.common.gson.Gson getGson() -
setGson
public void setGson(com.inductiveautomation.ignition.common.gson.Gson gson) -
getConnectTimeout
public long getConnectTimeout() -
getRedirectPolicy
-
getVersion
-
getJavaClient
-
toString
-