Yii HTTP
The package provides handy HTTP utility such as method constants.
Method constants
Individual HTTP methods could be referenced as
use Yiisoft\Http\Method;
Method::GET;
Method::POST;
Method::PUT;
Method::DELETE;
Method::PATCH;
Method::HEAD;
Method::OPTIONS;To have a list of these, use:
use Yiisoft\Http\Method;
Method::ANY;HTTP status codes
Status codes could be referenced by name as:
use Yiisoft\Http\Status;
Status::NOT_FOUND;Status text could be obtained as the following:
use Yiisoft\Http\Status;
Status::TEXTS[Status::NOT_FOUND];



