[Spawn] Add a ResqueRequest class

Review Request #164 — Created Oct. 1, 2013 and submitted

pprkut
Lunr
pprkut:extensions
162
lunr
Resque Jobs typically don't need request handling, as there is hardly any information to wrap. However, we still have dependencies that might need a Request class (e.g. the loggers), and for those
cases it's handy to have a sort of "dummy" request class handy.
Unit tests
leo
  1. I assume that the functions:
    
    get_get_data
    get_post_data
    get_files_data
    get_cookie_data
    get_json_from_post
    get_json_from_get
    
    do not need to be implemented for the purposes of this class and are there just to comply with the Interface's requirements.
    1. Indeed. A Resque job will never get POST, GET, FILES or COOKIE data, nor will it ever directly parse the command line. Hence there is nothing to do for these functions. In fact, implementing them might even lead to unexpected behavior.
  2. 
      
pprkut
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master
Loading...