Rest icon indicating copy to clipboard operation
Rest copied to clipboard

Thin controller for RESTful applications

Results 27 Rest issues
Sort by recently updated
recently updated
newest added

Errors/warnings of functions which are suppressed with "@" (for example `@array_keys_exist('test', new \stdClass())` in PHP 7.4) are not ignored by the error handling. In `Respect\Rest\Request::prepareForErrorForwards()` all errors are collected and...

I have extended the $router->exceptionRoute() method to be able to catch Throwable Errors that are not being caught by $router->errorRoute() method. Ex: ``` $router->exceptionRoute(Error::class, function (\Error $e) use ($logger) {...

@apteles I didn't forget about you! You asked at #138 [issuecomment-563459955](https://github.com/Respect/Rest/issues/138#issuecomment-563459955): > @nickl- I subscribed today on website CodeTriage, when i saw this project I made my subscription to receive...

some shitty OS's (for example MS Windows) may corrupt binary data like the sample .jpg files with fopen text mode, and the default fopen mode if none is specified, may...

Hi, I went to an issue where my last parameter contains a dot (but is not a filename) As I used the accept() method my parameter was missing its right...

What do you guys think about this [API](https://gist.github.com/4596264) for an OAuth client ? I was looking for something simple but I not found anything. thoughts ? @nickl-

Our tests are messy, declaring `header` functions everywhere, as of [PHP 5.4](http://php.net/supported-versions.php) we can use [http_response_code](http://php.net/http_response_code) function to check headers and [xdebug_get_headers](https://github.com/Respect/Rest/blob/faecd8468e8aba1ee728c3afdfcf7ad5f20877c3/tests/library/Respect/Rest/RouterTest.php#L508-L517) together to check for HTTP header changes on...

feature

Using [exception handling](https://github.com/Respect/Rest/blob/master/docs/README.md#error-handling) we can make errors catchable by type. If we treat the _error_ as an usual route we can also attach _routines_ to it so it can respect...

bug

This is a feature I really miss in Respect/Rest is, to allow subrouters. Eg. define sub routers: ``` php $blog = new Router; $blog->get('/', function() { return 'This is my...