Skip to content

Commit

Permalink
0.2.30.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
xtgxiso committed Feb 15, 2017
1 parent bbf5a3f commit cc33aa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion App.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class App extends Worker
*
* @var string
*/
const VERSION = '0.2.2';
const VERSION = '0.2.3';

private $conn = false;
private $map = array();
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ $app->HandleFunc("/json",function() {
$this->ServerJson(array("name"=>"WebWorker"));
});

//注册路由/
$app->HandleFunc("/",function() {
//自定义响应头
$this->Header("server: xtgxiso");
//以json格式响应
$this->ServerJson(array("name"=>"WebWorker"));
});

//注册路由input
$app->HandleFunc("/input",function() {
//获取body
Expand Down

0 comments on commit cc33aa3

Please sign in to comment.