You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SRU 1.00 does not explicitly depend on CGI::Application, but SRU::Server requires CGI::Application. I am not sure how to best change SRU::Server, but I'd like to modify the current connection to CGI::Application and better support PSGI. Any suggestions?
How about moving base and methods of CGI::Application from SRU::Server to a new module CGI::Application::SRU and create another module Plack::App::SRU, both to be used this way:
{
package MyApp;
use base qw(SRU::Server); # does not require CGI::Application
sub explain { ... }
sub scan { ... }
sub retrieve { ... }
}
Use as CGI::Application:
use MyApp;
MyApp->new->as_cgiapp->run; # requires CGI::Application
Use as PSGI application (requires Plack::App::SRU):
use MyApp;
MyApp->new->as_psgi;
The text was updated successfully, but these errors were encountered:
SRU 1.00 does not explicitly depend on CGI::Application, but SRU::Server requires CGI::Application. I am not sure how to best change SRU::Server, but I'd like to modify the current connection to CGI::Application and better support PSGI. Any suggestions?
How about moving base and methods of CGI::Application from SRU::Server to a new module CGI::Application::SRU and create another module Plack::App::SRU, both to be used this way:
Use as CGI::Application:
Use as PSGI application (requires Plack::App::SRU):
The text was updated successfully, but these errors were encountered: