Difference between revisions of "CONTENT TYPE JSON"
Jump to navigation
Jump to search
Kireji Haiku (talk | contribs) (added http_request to events) |
Kireji Haiku (talk | contribs) m (not hex) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{#vardefine:CONTENT_TYPE_JSON|{{LSL Const|CONTENT_TYPE_JSON|integer| | <onlyinclude>{{#vardefine:CONTENT_TYPE_JSON|{{LSL Const|CONTENT_TYPE_JSON|integer|5|c={{#if:{{{direct|}}}|Sets the {{Wikipedia|Internet media type|Internet media type}} <code>{{String|Content-Type}}</code> header of any subsequent [[LSL HTTP server]] response via [[llHTTPResponse]] to <code>{{String|application/json}}</code>.}}}}}}</onlyinclude>{{LSL Constant | ||
|name={{#var:cname}} | |name={{#var:cname}} | ||
|type={{#var:type}} | |type={{#var:type}} | ||
|value=5 | |value=5 | ||
|desc=Sets the {{Wikipedia|Internet media type|Internet media type}} <code>{{String|Content-Type}}</code> header of any subsequent [[LSL HTTP server]] response via [[llHTTPResponse]] to <code>{{String|application/json}}</code>. | |desc=Sets the {{Wikipedia|Internet media type|Internet media type}} <code>{{String|Content-Type}}</code> header of any subsequent [[LSL HTTP server]] response via [[llHTTPResponse]] to <code>{{String|application/json}}</code>. | ||
Line 22: | Line 21: | ||
{{LSL DefineRow||[[http_request]]|}} | {{LSL DefineRow||[[http_request]]|}} | ||
{{LSL DefineRow||[[http_response]]|}} | {{LSL DefineRow||[[http_response]]|}} | ||
|articles={{LSL DefineRow||[[LSL HTTP server]]}} | |||
|cat1=Chat | |cat1=Chat | ||
|cat2 | |cat2 |
Latest revision as of 02:07, 2 January 2014
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer CONTENT_TYPE_JSON = 5;The integer constant CONTENT_TYPE_JSON has the value 5
Sets the Internet media type "Content-Type"
header of any subsequent LSL HTTP server response via llHTTPResponse to "application/json"
.
Caveats
Related Articles
Constants
• | CONTENT_TYPE_TEXT | |||
• | CONTENT_TYPE_HTML | |||
• | CONTENT_TYPE_XML | |||
• | CONTENT_TYPE_XHTML | |||
• | CONTENT_TYPE_ATOM | |||
• | CONTENT_TYPE_LLSD | |||
• | CONTENT_TYPE_FORM | |||
• | CONTENT_TYPE_RSS |
Functions
• | llSetContentType | |||
• | llHTTPResponse |
Events
• | http_request | |||
• | http_response |
Articles
• | LSL HTTP server |