“LlHTTPResponse”的版本间的差异
| 第24行: | 第24行: | ||
changed(integer change) | changed(integer change) | ||
{ | { | ||
| − | if (change & (CHANGED_REGION_START | CHANGED_REGION | CHANGED_TELEPORT)) | + | if (change & (CHANGED_REGION_START|CHANGED_REGION | CHANGED_TELEPORT)) |
llResetScript(); | llResetScript(); | ||
} | } | ||
2020年8月20日 (四) 10:11的版本
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| Function: llHTTPResponse( key request_id, integer status, string body ); |
| 参数:
key request_id – A valid HTTP request key. integer status – HTTP Status (200, 400, 404, etc) string body – Contents of the response. |
| 返回值:用 status 和 body 响应 request _ id。 |
| 注意事项 |
|---|
*This call must be made by the script containing the http_request event where the request_id was received.
在接收脚本时,llhttprequest 可以截断响应长度。在使用它们进行 prim-to-prim 通信时要注意。
|
| 示例 |
|---|
示例一
string url;
default
{
changed(integer change)
{
if (change & (CHANGED_REGION_START
|
| 相关函数 |
|---|
| llGetFreeURLs llRequestURL llRequestSecureURL llReleaseURL llGetHTTPHeader llSetConteneType |
| 相关事件 |
|---|
| http request http response |