Restful icon indicating copy to clipboard operation
Restful copied to clipboard

Be able to disable the RequestFilter

Open martinsik opened this issue 7 years ago • 0 comments

I'd appreciate to be able to disable RequestFilter and thus avoid setting headers right after creating the Response object in createHttpResponse(). https://github.com/drahak/Restful/blob/master/src/Drahak/Restful/Http/ResponseFactory.php#L73

The problem with this is that it dumps the header right away in Response::setHeader https://github.com/nette/http/blob/master/src/Http/Response.php#L100 and doesn't work well with PHPUnit for example.

The current behavior prevents me from using offset and limit query parameters because these trigger the paginator that I don't want to be using anyway.

martinsik avatar Jun 04 '17 07:06 martinsik