HTTPContentType
Constants in the HTTPContentType enum.
integer CONTENT_TYPE_ATOM = 4; // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/atom+xml'.integer CONTENT_TYPE_FORM = 7; // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/x-www-form-urlencoded'.integer CONTENT_TYPE_HTML = 1; // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'text/html'.integer CONTENT_TYPE_JSON = 5; // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/json'.integer CONTENT_TYPE_LLSD = 6; // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/llsd+xml' (Linden Lab Structured Data).integer CONTENT_TYPE_RSS = 8; // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/rss+xml'.integer CONTENT_TYPE_TEXT = 0; // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'text/plain'.integer CONTENT_TYPE_XHTML = 3; // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/xhtml+xml'.integer CONTENT_TYPE_XML = 2; // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/xml'.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
CONTENT_TYPE_ATOM | integer | 4 | Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/atom+xml'. |
CONTENT_TYPE_FORM | integer | 7 | Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/x-www-form-urlencoded'. |
CONTENT_TYPE_HTML | integer | 1 | Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'text/html'. Only valid for embedded browsers on content owned by the viewer; falls back to 'text/plain' otherwise. |
CONTENT_TYPE_JSON | integer | 5 | Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/json'. |
CONTENT_TYPE_LLSD | integer | 6 | Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/llsd+xml' (Linden Lab Structured Data). |
CONTENT_TYPE_RSS | integer | 8 | Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/rss+xml'. |
CONTENT_TYPE_TEXT | integer | 0 | Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'text/plain'. |
CONTENT_TYPE_XHTML | integer | 3 | Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/xhtml+xml'. |
CONTENT_TYPE_XML | integer | 2 | Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/xml'. |
Used by
llSetContentTypefunctionSets the 'Content-Type' header of subsequent HTTP server responses (via llHTTPResponse) for request_id using the specified content_type (a CONTENT_TYPE_* constant).