项目作者: rodortega

项目描述 :
A simple PHP class that sets the appropriate header for requests (Useful for REST APIs).
高级语言: PHP
项目地址: git://github.com/rodortega/http-status-code.git
创建时间: 2017-08-04T06:27:14Z
项目社区:https://github.com/rodortega/http-status-code

开源协议:MIT License

下载


http_status_code

A simple PHP class that sets the appropriate header for requests (Useful for REST APIs).

To use:

  1. require 'Response.php';
  2. $Response = new Response();
  3. $Response->setResponse(500); //sets the header to HTTP/1.1 500 Server Error: Internal Server Error