Index
A
- Http::after() — Method in class Http
- Set a callback to be run after any route callback is executed.
- Http::abort() — Method in class Http
- A convenience method to abort the route and send a response with the given status & message
B
- Http::before() — Method in class Http
- Set a callback to be run before any route callback is executed.
D
- Http::delete() — Method in class Http
- Defines a DELETE callback
E
- Http::error() — Method in class Http
- Defines the global exception handler
- Http::exec() — Method in class Http
- Runs the route
G
- Http::get() — Method in class Http
- Defines a GET callback
- Request::getFile() — Method in class Request
- Gets the filename of the script called by the request.
- Request::getHost() — Method in class Request
- Gets the host from the php server superglobals
- Request::getMethod() — Method in class Request
- Gets the request method.
- Request::getPort() — Method in class Request
- Gets the port from the php server superglobals
- Request::getPathInfo() — Method in class Request
- Gets the path info from the php server superglobals
- Request::getRequestURI() — Method in class Request
- Gets the request URI from the php server superglobals
- Request::getScriptName() — Method in class Request
- Gets the name of the script called from the request
- Request::getURIComponent() — Method in class Request
- Gets a given URI component off the parsed request URI
- Request::getAllURIComponents() — Method in class Request
- Returns the array of URI components off the parsed request URI
- Request::getUserAgent() — Method in class Request
- Gets the user agent from the php server superglobals
- Request::get() — Method in class Request
- Gets data off the request body.
- Response::get() — Method in class Response
- Get a value from the response given a property.
H
- Http — Class in namespace Http
- Http::header() — Method in class Http
- Sets the header response header.
- Http::handleError() — Method in class Http
- This is really an exception handler "error" is just syntactical sugar
- Response::header() — Method in class Response
- Sets the response header.
I
- InvalidStatusCode — Class in namespace Http\Exceptions
- Class InvalidStatusCode
J
- InvalidStatusCode::jsonSerialize() — Method in class InvalidStatusCode
- ResponseAlreadySent::jsonSerialize() — Method in class ResponseAlreadySent
- Response::jsonSerialize() — Method in class Response
P
- Http::post() — Method in class Http
- Defines a POST callback
- Http::put() — Method in class Http
- Defines a PUT callback
- Http::patch() — Method in class Http
- Defines a PATCH callback
- Response::push() — Method in class Response
- Push data onto the response as an indexed array.
Q
- Request::query() — Method in class Request
- Gets data from the query parameters of the request.
R
- ResponseAlreadySent — Class in namespace Http\Exceptions
- Class ResponseAlreadySent
- Http::redirect() — Method in class Http
- Redirect to a given URL.
- Request — Class in namespace Http
- Response — Class in namespace Http
S
- Http::status() — Method in class Http
- If given a valid status code, sets the status and return the previous status code.
- Http::send() — Method in class Http
- Sends a response and exits script execution.
- $Response — Property in class Response
- Response::set() — Method in class Response
- Set a given property on the response with the given value.
- Response::set_array() — Method in class Response
- Set an array of key value pairs on the response.
U
- Response::unshift() — Method in class Response
- Prepend data onto the response as an indexed array.
_
- InvalidStatusCode::__construct() — Method in class InvalidStatusCode
- InvalidStatusCode constructor.
- InvalidStatusCode::__toString() — Method in class InvalidStatusCode
- ResponseAlreadySent::__construct() — Method in class ResponseAlreadySent
- ResponseAlreadySent constructor.
- ResponseAlreadySent::__toString() — Method in class ResponseAlreadySent
- Http::__construct() — Method in class Http
- Http constructor.
- Http::__toString() — Method in class Http
- Request::__construct() — Method in class Request
- Request constructor.
- Request::__toString() — Method in class Request
- Response::__construct() — Method in class Response
- Response constructor.
- Response::__toString() — Method in class Response