We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b017f8 commit 33313c4Copy full SHA for 33313c4
docs/Http_API.md
@@ -0,0 +1,20 @@
1
+The HTTP API
2
+-
3
+
4
+The IHttpRequest and IHttpResponse interfaces are exposed as Python classes (both inheriting from IHttpBase)
5
6
+The usage is pretty 'pythonic' and support both polling and evented approaches:
7
8
+```python
9
+from unreal_engine import IHttpRequest
10
+import json
11
12
+request = IHttpRequest('Get', 'http://httpbin.org/user-agent')
13
+request.process_request()
14
15
+response = request.get_response()
16
17
+data = json.loads(response.get_content_as_string())
18
19
+ue.log(data)
20
+```
0 commit comments