mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-12 03:05:34 +08:00
add Middleware and release version 1.1.0
This commit is contained in:
@@ -157,6 +157,11 @@ class Response
|
||||
|
||||
public function isEnd() { return $this->is_end; }
|
||||
|
||||
public function endWithStatus($status_code = 200, $content = null){
|
||||
$this->status($status_code);
|
||||
$this->end($content);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $filename
|
||||
* @param $offset
|
||||
@@ -226,4 +231,4 @@ class Response
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user