aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
diff options
context:
space:
mode:
authorMic Bowman2012-08-29 14:56:51 -0700
committerMic Bowman2012-08-29 14:56:51 -0700
commit3d736d575ff9670ac813f13eb1cff07dea10328b (patch)
treebe3458150faf0a738c2e14814b2ff3992e4b4d5a /OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
parentimplementing rule tracking (diff)
downloadopensim-SC_OLD-3d736d575ff9670ac813f13eb1cff07dea10328b.zip
opensim-SC_OLD-3d736d575ff9670ac813f13eb1cff07dea10328b.tar.gz
opensim-SC_OLD-3d736d575ff9670ac813f13eb1cff07dea10328b.tar.bz2
opensim-SC_OLD-3d736d575ff9670ac813f13eb1cff07dea10328b.tar.xz
This partially implements the LSL function to set the response
type for an HTTP request. Since the "official" LSL function limits the use of the response type, it is implemented as osSetContentType with a string for the content mime type and a threat level of high. With this function you should be able to implement rather functional media-on-a-prim application with much less difficulty.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index ce1845c..06729ab 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -365,5 +365,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
365 /// </summary> 365 /// </summary>
366 /// <returns>Rezzing object key or NULL_KEY if rezzed by agent or otherwise unknown.</returns> 366 /// <returns>Rezzing object key or NULL_KEY if rezzed by agent or otherwise unknown.</returns>
367 LSL_Key osGetRezzingObject(); 367 LSL_Key osGetRezzingObject();
368
369 /// <summary>
370 /// Sets the response type for an HTTP request/response
371 /// </summary>
372 /// <returns></returns>
373 void osSetContentType(LSL_Key id, string type);
368 } 374 }
369} 375}