Difference between revisions of "LlSetContentType/ja"

From Second Life Wiki
Jump to navigation Jump to search
(新規作成)
 
m
Line 17: Line 17:
! コンテンツタイプ
! コンテンツタイプ
{{!}}-
{{!}}-
{{!}} {{LSL Const|CONTENT_TYPE_TEXT|integer|hex=0x0|c=text/plain}}
{{!}} {{LSL Const/ja|CONTENT_TYPE_TEXT|integer|hex=0x0|c=text/plain}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} {{#var:comment}}
{{!}} {{#var:comment}}
{{!}}-
{{!}}-
{{!}} {{LSL Const|CONTENT_TYPE_HTML|integer|hex=0x1|c=text/html}}
{{!}} {{LSL Const/ja|CONTENT_TYPE_HTML|integer|hex=0x1|c=text/html}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} {{#var:comment}}
{{!}} {{#var:comment}}
Line 34: Line 34:
|helpers
|helpers
|also_header
|also_header
|also_events={{LSL DefineRow||[[http_request/ja|http_request]]}}
|also_events={{LSL DefineRow||{{LSLG/ja|http_request}}}}
|also_functions={{LSL DefineRow||[[llHTTPResponse/ja|llHTTPResponse]]}}
|also_functions={{LSL DefineRow||{{LSLG/ja|llHTTPResponse}}}}
|also_articles={{LSL DefineRow||[[LSL HTTP server/ja|LSL HTTP server]]}}
|also_articles={{LSL DefineRow||{{LSLG/ja|LSL HTTP server}}}}
|also_footer
|also_footer
|notes=
|notes=

Revision as of 22:41, 11 December 2012

要約

関数: llSetContentType( key request_id, integer content_type );

LSL HTTPサーバーレスポンスの"Wikipedia logo"インターネットメディアタイプを設定します。[1]

• key request_id http_request() のkey
• integer content_type その後のllHTTPResponse(request_id, ...)全てで用いるメディアタイプ

コンテンツタイプ コンテンツタイプ
CONTENT_TYPE_TEXT 0x0 text/plain
CONTENT_TYPE_HTML 0x1 text/html

警告

  • この設定は以下の場合に無視されます。
    1. ウェブブラウザがSecond Life clientでない場合。
    2. (SLクライアントでログインしてページを表示している)ユーザーがオブジェクトのオーナーでない場合。
  • グループ所有のオブジェクトでは機能しません。
All Issues ~ Search JIRA for related Bugs

サンプル

注意点

  • インワールドで所有者以外にhtmlを表示するための代替手段はここで見れます。

関連項目

イベント

•  http_request

関数

•  llHTTPResponse

記事

•  LSL HTTP server

特記事項

経緯

  • Released August 16, 2011.
Search JIRA for related Issues

脚注

  1. ^ この関数はその後に起こる全てのllHTTPResponseレスポンスの"Content-Type"ヘッダーを設定します。

Signature

function void llSetContentType( key request_id, integer content_type );

コメント

クライアントと所有者の制限は、プリムからウェブサイトを運営する可能性をほぼ取り去ります。

この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。