yggdrasil-http
v3.0.0-rc.2
Published
Response and error API for the yggdrasil-router
Downloads
5
Readme
Yggdrasil Http
This project offers an OOP styled API for creating response objects which are handled by the yggdrasil-router module.
Responses
Base Response
This Response is an abstract class an contains fields for the http status code and the MIME-Type. This class is used for building custom responses and is the base for the currently existing responses.
Simple Response
Is an generic response object which can be used for user defined responses.
JSON Response
Response with application/json type.
Html Response
Response with text/html type.
Plain Response
Response with text/plain type.
Redirect Response
Response for redirecting with status code 301 and type text/html.
View Response
Response for rendering server side pages.