{"id":16010159,"url":"https://github.com/nichtich/plack-util-load","last_synced_at":"2025-04-05T02:27:49.080Z","repository":{"id":28202300,"uuid":"31704705","full_name":"nichtich/Plack-Util-Load","owner":"nichtich","description":"load PSGI application from class, file, or URL","archived":false,"fork":false,"pushed_at":"2015-05-04T08:54:17.000Z","size":148,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T10:49:02.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Plack::Util::Load","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nichtich.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-05T08:56:12.000Z","updated_at":"2015-05-04T08:54:17.000Z","dependencies_parsed_at":"2022-08-02T11:03:23.901Z","dependency_job_id":null,"html_url":"https://github.com/nichtich/Plack-Util-Load","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nichtich%2FPlack-Util-Load","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nichtich%2FPlack-Util-Load/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nichtich%2FPlack-Util-Load/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nichtich%2FPlack-Util-Load/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nichtich","download_url":"https://codeload.github.com/nichtich/Plack-Util-Load/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247278464,"owners_count":20912741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T13:04:48.427Z","updated_at":"2025-04-05T02:27:48.257Z","avatar_url":"https://github.com/nichtich.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nPlack::Util::Load - load PSGI application from class, file, or URL\n\n# STATUS\n\n[![Build Status](https://travis-ci.org/nichtich/Plack-Util-Load.png)](https://travis-ci.org/nichtich/Plack-Util-Load)\n[![Coverage Status](https://coveralls.io/repos/nichtich/Plack-Util-Load/badge.png)](https://coveralls.io/r/nichtich/Plack-Util-Load)\n[![Kwalitee Score](http://cpants.cpanauthors.org/dist/Plack-Util-Load.png)](http://cpants.cpanauthors.org/dist/Plack-Util-Load)\n\n# SYNOPSIS\n\n    use Plack::Util::Load;\n\n    $app = load_app('app.psgi');\n    $app = load_app; # equivalent\n\n    $app = load_app(5000); \n    $app = load_app(':5000');\n    $app = load_app('localhost:5000');\n    $app = load_app('http://localhost:5000/');\n\n    $app = load_app(\"http://example.org/\");\n\n    $app = load_app('MyApp::PSGI');\n\n# DESCRIPTION\n\nThis module exports the function `load_app` to load a [PSGI](https://metacpan.org/pod/PSGI) application from\nfile, class name, URL, or port number on localhost. The function will return a\ncode reference or die. A typical use case is the application of tests. To give\nan example, the following test runs on the PSGI application `MyApp::PSGI` by\ndefault. After deployment the same test can be executed with environment\nvariable `TEST_URL` set to the port or URL where the app is installed:\n\n    use Test::More;\n    use Plack::Test;\n    my $app = load_app( $ENV{TEST_URL} || 'MyApp::PSGI', verbose =\u003e 1 );\n\n    test_psgi $app, sub {\n        my $cb = shift;\n        ...\n    };\n\n    done_testing;\n\n# OPTIONS\n\nThe additional options `verbose` can be passed to log HTTP requests and\nerrors:\n\n    $app = load_app( 'http://example.org/', verbose =\u003e 1 ); \n\nThe default value for this option can be set with\n`$Plack::Util::Load::VERBOSE`.\n\n# SEE ALSO\n\n[Plack::Util](https://metacpan.org/pod/Plack::Util), [Plack::App::Proxy](https://metacpan.org/pod/Plack::App::Proxy)\n\n# COPYRIGHT AND LICENSE\n\nCopyright Jakob Voss, 2015-\n\nThis library is free software; you can redistribute it and/or modify it under\nthe same terms as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnichtich%2Fplack-util-load","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnichtich%2Fplack-util-load","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnichtich%2Fplack-util-load/lists"}