Rewrite Request class for improved testability
Request: rewrite input filtering
Request: rewrite set_params for better testability