Mark MCRouter* as __PHPStdLib
[hiphop-php.git] / hphp / hack / hhi / stdlib / builtins_server.hhi
blob1055aaeb198be79d4862fab76ec638eca2345c28
1 <?hh // decl /* -*- mode: php -*- */
2 /**
3  * Copyright (c) 2014, Facebook, Inc.
4  * All rights reserved.
5  *
6  * This source code is licensed under the MIT license found in the
7  * LICENSE file in the "hack" directory of this source tree.
8  *
9  */
11 const int PAGELET_NOT_READY = 0;
12 const int PAGELET_READY = 0;
13 const int PAGELET_DONE = 0;
15 <<__PHPStdLib>>
16 function dangling_server_proxy_old_request();
17 <<__PHPStdLib>>
18 function pagelet_server_is_enabled();
19 <<__PHPStdLib>>
20 function pagelet_server_task_start($url, $headers = null, $post_data = null, $files = null, int $timeout_seconds = 0);
21 <<__PHPStdLib>>
22 function pagelet_server_task_status($task);
23 <<__PHPStdLib>>
24 function pagelet_server_task_result($task, &$headers, &$code, $timeout_ms = 0): string;
25 <<__PHPStdLib>>
26 function pagelet_server_flush();
27 <<__PHPStdLib>>
28 function xbox_send_message($msg, &$ret, $timeout_ms, $host = "localhost");
29 <<__PHPStdLib>>
30 function xbox_post_message($msg, $host = "localhost");
31 <<__PHPStdLib>>
32 function xbox_task_start($message);
33 <<__PHPStdLib>>
34 function xbox_task_status($task);
35 <<__PHPStdLib>>
36 function xbox_task_result($task, $timeout_ms, &$ret);
37 <<__PHPStdLib>>
38 function xbox_process_call_message($msg);
39 <<__PHPStdLib>>
40 function xbox_get_thread_timeout();
41 <<__PHPStdLib>>
42 function xbox_set_thread_timeout($timeout);
43 <<__PHPStdLib>>
44 function xbox_schedule_thread_reset();
45 <<__PHPStdLib>>
46 function xbox_get_thread_time();