diff options
Diffstat (limited to 'source/WindowsFormsApplication1/Engine')
| -rw-r--r-- | source/WindowsFormsApplication1/Engine/Lua_Interp.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs index c4a9162..ed9c31f 100644 --- a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs +++ b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs @@ -111,6 +111,13 @@ namespace ShiftOS /// </summary> public void RegisterCore() { + mod.httpget = new Func<string, string>((url) => + { + WebRequest request = WebRequest.Create(url); + Stream requestStream = request.GetResponse().GetResponseStream(); + StreamReader requestRead = new StreamReader(requestStream); + return requestRead.ReadToEnd(); + }); //Shifter Extension API mod.shifter_add_category = new Action<string>((name) => { |
