Result:
found more than 590 distributions - search limited to the first 2001 files matching your query ( run in 1.844 )


Catalyst-Plugin-RequireSSL

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

  Catalyst::Test: 0
  Data::Dumper: 0
  ExtUtils::MakeMaker: 6.42
  File::Spec: 0
  FindBin: 0
  HTTP::Request::Common: 0
  Test::More: 0
configure_requires:
  ExtUtils::MakeMaker: 6.42
distribution_type: module
generated_by: 'Module::Install version 1.02'

 view all matches for this distribution


Catalyst-Plugin-ResponseFrom

 view release on metacpan or  search on metacpan

lib/Catalyst/Plugin/ResponseFrom.pm  view on Meta::CPAN


use URI ();
use Moose::Role;
use HTTP::Message::PSGI ();
use MIME::Base64 ();
use HTTP::Request ();
use Scalar::Util ();

our $VERSION = '0.003';

requires 'psgi_app', 'res', 'detach';

lib/Catalyst/Plugin/ResponseFrom.pm  view on Meta::CPAN

    $method = 'GET';
    @rest = ();
  }

  # if it's a reference, assume a request object
  return $method if(Scalar::Util::blessed $method and $method->isa('HTTP::Request'));
 
  if ($path =~ s/^(.*?)\@//) {
    my $basic = $1;
    unshift @rest, 'Authorization:', 'Basic '.MIME::Base64::encode($basic);
  }
 
  my $request = HTTP::Request->new($method => $path);
 
  my @params;
 
  while (my ($header, $value) = splice(@rest, 0, 2)) {
    unless ($header =~ s/:$//) {

lib/Catalyst/Plugin/ResponseFrom.pm  view on Meta::CPAN


    package MyApp::Controller::Example;

    use Moose;
    use MooseX::MethodAttributes;
    use HTTP::Request::Common;

    extends 'Catalyst::Controller';

    sub as_http_request :Local {
      my ($self, $c) = @_;

lib/Catalyst/Plugin/ResponseFrom.pm  view on Meta::CPAN


Accept three style of arguments:

=over4

=item  An L<HTTP::Request> object

Runs this against the application as if running from a client such as a browser

=item Parameters ($method, $path) 

A single domain specific language used to construct an L<HTTP::Request> object.

If the HTTP method is POST or PUT, then a series of pairs can be passed after
this to create a form style message body. If you need to test an upload, then
create an L<HTTP::Request> object by hand or use the C<POST> subroutine
provided by L<HTTP::Request::Common>.
 
If you prefix the URL with 'user:pass@' this will be converted into
an Authorization header for HTTP basic auth:
 
    my $res = $app->http_response_from(

 view all matches for this distribution


Catalyst-Plugin-Server-JSONRPC

 view release on metacpan or  search on metacpan

lib/JSON/RPC/Common/Marshal/Catalyst.pm  view on Meta::CPAN

=head1 DESCRIPTION

This object provides marshalling routines to convert L<Catalyst::Request> 
to L<JSON::RPC::Common:Call> object.

Use  L<JSON::RPC::Common::Marshal::Catalyst> to work with L<HTTP::Request>

=head1 METHODS

=over 4

 view all matches for this distribution


Catalyst-Plugin-Server

 view release on metacpan or  search on metacpan

t/inc/local_request.pl  view on Meta::CPAN


    *Catalyst::Test::local_request = sub {
        my ( $class, $request ) = @_;
        use Data::Dumper;

        require HTTP::Request::AsCGI;
        require Catalyst::Utils;
        $request = ref($request) ? $request : Catalyst::Utils::request($request);
        my $cgi = HTTP::Request::AsCGI->new( $request, %ENV )->setup;

        $class->handle_request;

        return $cgi->restore->response;
    };

 view all matches for this distribution


Catalyst-Plugin-Session-Store-Cookie

 view release on metacpan or  search on metacpan

t/basic.t  view on Meta::CPAN

  MyApp->config('Plugin::Session' => {storage_secret_key => 'abc123'});
  MyApp->setup;
}


use HTTP::Request::Common;
use Test::WWW::Mechanize::Catalyst qw/MyApp/;
 
ok my $m = Test::WWW::Mechanize::Catalyst->new;

$m->get_ok( "http://localhost/root/create_session", "create session" );

 view all matches for this distribution


Catalyst-Plugin-Session

 view release on metacpan or  search on metacpan

t/lib/MiniUA.pm  view on Meta::CPAN

package MiniUA;
use strict;
use warnings;
use Plack::Test ();
use HTTP::Cookies;
use HTTP::Request::Common;

sub new {
  my ($class, $app, $opts) = @_;
  my $psgi
    = ref $app eq 'CODE' ? $app

 view all matches for this distribution


Catalyst-Plugin-SmartURI

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Catalyst::Action::REST" : "0",
            "Catalyst::Controller" : "0",
            "Catalyst::Test" : "0",
            "File::Spec" : "0",
            "FindBin" : "0",
            "HTTP::Request" : "0",
            "IO::Handle" : "0",
            "IPC::Open3" : "0",
            "Test::More" : "0",
            "Test::Warnings" : "0",
            "Time::HiRes" : "0",

 view all matches for this distribution


Catalyst-Plugin-SpecialAction-Trail

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

build_requires:
  Catalyst::Test: 0
  Data::Dumper: 0
  ExtUtils::MakeMaker: 6.42
  FindBin: 0
  HTTP::Request::Common: 5.824
  Path::Class: 0.16
  Test::Deep: 0.103
  Test::Differences: 0.4801
  Test::More: 0.92
  Test::Most: 0.21

 view all matches for this distribution


Catalyst-Plugin-Static-File

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Catalyst" : "5.90129",
            "Catalyst::Controller" : "0",
            "Catalyst::Test" : "0",
            "File::Spec" : "0",
            "FindBin" : "0",
            "HTTP::Request::Common" : "0",
            "HTTP::Status" : "0",
            "IO::Handle" : "0",
            "IPC::Open3" : "0",
            "Module::Metadata" : "1.000015",
            "Moose" : "0",

 view all matches for this distribution


Catalyst-Plugin-Static

 view release on metacpan or  search on metacpan

t/02static.t  view on Meta::CPAN

use Catalyst::Test 'TestApp';

use File::stat;
use File::Slurp;
use HTTP::Date;
use HTTP::Request::Common;

my $stat = stat($0);

{
    ok( my $response = request('/02static.t'),        'Request'                   );

 view all matches for this distribution


Catalyst-Plugin-URI

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

abstract: 'Sugar and strong errors for $c->uri_for'
author:
  - 'John Napiorkowski <jjnapiork@cpan.org>'
build_requires:
  Catalyst: '5.90060'
  HTTP::Request::Common: '0'
  Test::Most: '0'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010'

 view all matches for this distribution


Catalyst-Plugin-URLMap

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

  - 'John Napiorkowski <jjnapiork@cpan.org>'
build_requires:
  Catalyst: 5.90001
  Catalyst::Test: 0
  FindBin: 0
  HTTP::Request::Common: 0
  Moose: 0
  Plack::App::File: 0
  Plack::App::URLMap: 0
  Plack::Component: 0
  Plack::Util: 0

 view all matches for this distribution


Catalyst-Plugin-UploadProgress

 view release on metacpan or  search on metacpan

t/04uploadprogress.t  view on Meta::CPAN

    unlink "$FindBin::Bin/cache.dat" if -e "$FindBin::Bin/cache.dat";
}

use Test::More;
use Catalyst::Test 'TestApp';
use HTTP::Request::Common;

eval { 
    require Catalyst::Plugin::Cache::FastMmap;
};
if ($@) {

 view all matches for this distribution


Catalyst-Plugin-XMLRPC

 view release on metacpan or  search on metacpan

t/04live.t  view on Meta::CPAN

    no warnings 'redefine';

    *Catalyst::Test::local_request = sub {
        my ( $class, $request ) = @_;

        require HTTP::Request::AsCGI;
        my $cgi = HTTP::Request::AsCGI->new( $request, %ENV )->setup;

        $class->handle_request;

        return $cgi->restore->response;
    };

t/04live.t  view on Meta::CPAN


    # test echo
    {
        my $content =
          RPC::XML::request->new( 'myAPI.echo', 'hello' )->as_string;
        my $request = HTTP::Request->new( POST => $entrypoint );
        $request->header( 'Content-Length' => length($content) );
        $request->header( 'Content-Type'   => 'text/xml' );
        $request->content($content);

        ok( my $response = request($request), 'Request' );

t/04live.t  view on Meta::CPAN


    # test add
    {
        my $content =
          RPC::XML::request->new( 'plugin.xmlrpc.add', ( 1, 2 ) )->as_string;
        my $request = HTTP::Request->new( POST => $entrypoint );
        $request->header( 'Content-Length' => length($content) );
        $request->header( 'Content-Type'   => 'text/xml' );
        $request->content($content);

        ok( my $response = request($request), 'Request' );

 view all matches for this distribution


Catalyst-Runtime

 view release on metacpan or  search on metacpan

lib/Catalyst/Test.pm  view on Meta::CPAN

    use Catalyst::Test 'TestApp';
    my $content  = get('index.html');           # Content as string
    my $response = request('index.html');       # HTTP::Response object
    my($res, $c) = ctx_request('index.html');      # HTTP::Response & context object

    use HTTP::Request::Common;
    my $response = request POST '/foo', [
        bar => 'baz',
        something => 'else'
    ];

lib/Catalyst/Test.pm  view on Meta::CPAN


=head1 DESCRIPTION

This module allows you to make requests to a Catalyst application either without
a server, by simulating the environment of an HTTP request using
L<HTTP::Request::AsCGI> or remotely if you define the CATALYST_SERVER
environment variable. This module also adds a few Catalyst-specific
testing methods as displayed in the method section.

The L<get|/"$content = get( ... )"> and L<request|/"$res = request( ... );">
functions take either a URI or an L<HTTP::Request> object.

=head1 INLINE TESTS WILL NO LONGER WORK

While it used to be possible to inline a whole test app into a C<.t> file for
a distribution, this will no longer work.

lib/Catalyst/Test.pm  view on Meta::CPAN

header configuration; currently only supports setting 'host' value.

    my $res = request('foo/bar?test=1');
    my $virtual_res = request('foo/bar?test=1', {host => 'virtualhost.com'});

Alternately, you can pass in an L<HTTP::Request::Common> object to set arbitrary
request headers.

    my $res = request(GET '/foo/bar',
        X-Foo => 'Bar',
        Authorization => 'Bearer JWT_HERE',

lib/Catalyst/Test.pm  view on Meta::CPAN

Verify the given URL has a content type of $type and optionally specify a test name.

=head1 SEE ALSO

L<Catalyst>, L<Test::WWW::Mechanize::Catalyst>,
L<Test::WWW::Selenium::Catalyst>, L<Test::More>, L<HTTP::Request::Common>

=head1 AUTHORS

Catalyst Contributors, see Catalyst.pm

 view all matches for this distribution


Catalyst-TraitFor-Component-ConfigPerSite

 view release on metacpan or  search on metacpan

t/another_site_blog.t  view on Meta::CPAN

use Test::More tests => 5;
use HTTP::Request;
use HTTP::Request::Common;
use Test::HTML::Form;

use lib qw(t/lib);
use Catalyst::Test qw(TestBlogApp);


my $main_url = '/blog';
my $hr = HTTP::Request->new('GET', $main_url);
$hr->header(Host => 'foo.bar');
my $r=request($hr);

unless(ok($r->is_success, 'got main blog page ok')) {
    if($r->code == 500) {

 view all matches for this distribution


Catalyst-TraitFor-Controller-PermissionCheck

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

         "requires" : {
            "Catalyst" : 0,
            "Catalyst::Controller" : 0,
            "Catalyst::Test" : 0,
            "FindBin" : 0,
            "HTTP::Request::Common" : 0,
            "Moose" : 0,
            "Test::More" : 0
         }
      }
   },

 view all matches for this distribution


Catalyst-TraitFor-Controller-RenderView

 view release on metacpan or  search on metacpan

t/live-test.t  view on Meta::CPAN

    no warnings 'redefine';

    *Catalyst::Test::local_request = sub {
        my ( $class, $request ) = @_;

        require HTTP::Request::AsCGI;
        my $cgi = HTTP::Request::AsCGI->new( $request, %ENV )->setup;

        $class->handle_request;

        return $cgi->restore->response;
    };

t/live-test.t  view on Meta::CPAN


    # test first available view
    {
        my $expected = 'View';
        my $request  =
          HTTP::Request->new( GET => 'http://localhost:3000/test_firstview' );

        ok( my $response = request($request), 'Request' );
        ok( $response->is_success, 'Response Successful 2xx' );
        is( $response->header( 'Content-Type' ), 'text/html; charset=utf-8', 'Content Type' );
        is( $response->code, 200, 'Response Code' );

t/live-test.t  view on Meta::CPAN


    # test view
    {
        my $expected = 'View';
        my $request  =
          HTTP::Request->new( GET => 'http://localhost:3000/test_view' );

        ok( my $response = request($request), 'Request' );
        ok( $response->is_success, 'Response Successful 2xx' );
        is( $response->header( 'Content-Type' ), 'text/html; charset=utf-8', 'Content Type' );
        is( $response->code, 200, 'Response Code' );

t/live-test.t  view on Meta::CPAN


    # test skip view
    {
        my $expected = 'Skipped View';
        my $request  =
          HTTP::Request->new( GET => 'http://localhost:3000/test_skipview' );

        ok( my $response = request($request), 'Request' );
        ok( $response->is_success, 'Response Successful 2xx' );
        is( $response->header( 'Content-Type' ), 'text/html; charset=utf-8', 'Content Type' );
        is( $response->code, 200, 'Response Code' );

 view all matches for this distribution


Catalyst-TraitFor-Model-DBIC-Schema-RequestConnectionPool

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

  Catalyst::Test: 0
  DBI: 0
  DBIx::Class::Core: 0
  DBIx::Class::Schema: 0
  FindBin: 0
  HTTP::Request::Common: 0
  Moose: 0
  Test::More: 0
  base: 0
  strict: 0
  warnings: 0

 view all matches for this distribution


Catalyst-TraitFor-Request-ContentNegotiationHelpers

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

abstract: 'methods for your request object to assist in content negotiation'
author:
  - 'John Napiorkowski <jjnapiork@cpan.org>'
build_requires:
  Catalyst::Test: '0'
  HTTP::Request::Common: '0'
  Test::Most: '0.34'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 5.041, CPAN::Meta::Converter version 2.150005'

 view all matches for this distribution


Catalyst-TraitFor-Request-DecodedParams

 view release on metacpan or  search on metacpan

t/01-json_decoder.t  view on Meta::CPAN

use strict;
use warnings;
use lib 't/lib';
use Test::More;
use JSON::Any;
use HTTP::Request::Common;

BEGIN {
    use_ok 'Catalyst::Test', 'Simple';
}

 view all matches for this distribution


Catalyst-TraitFor-Request-Methods

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

   "dynamic_config" : 0,
   "generated_by" : "Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010",
   "keywords" : [
      "Catalyst",
      "Catalyst::Request",
      "HTTP::Request"
   ],
   "license" : [
      "artistic_2"
   ],
   "meta-spec" : {

META.json  view on Meta::CPAN

         },
         "requires" : {
            "Catalyst" : "5.90090",
            "Catalyst::Test" : "0",
            "File::Spec" : "0",
            "HTTP::Request" : "0",
            "HTTP::Request::Common" : "0",
            "Module::Metadata" : "0",
            "Moose" : "0",
            "Plack::Middleware::MethodOverride" : "0",
            "Test::More" : "0",
            "Test::Most" : "0",

 view all matches for this distribution


Catalyst-TraitFor-Request-PerLanguageDomains

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

  Catalyst::Plugin::Session::State::Cookie: 0
  Catalyst::Plugin::Session::Store::File: 0
  Catalyst::View::TT: 0
  CatalystX::RoleApplicator: 0
  ExtUtils::MakeMaker: 6.42
  HTTP::Request::Common: 0
  Test::More: 0
configure_requires:
  ExtUtils::MakeMaker: 6.42
distribution_type: module
generated_by: 'Module::Install version 0.99'

 view all matches for this distribution


Catalyst-TraitFor-Request-ProxyBase

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

  - 'Tomas Doran (t0m) C<< <bobtfish@bobtfish.net> >>'
build_requires:
  Catalyst::Runtime: 5.80007
  CatalystX::RoleApplicator: 0.005
  ExtUtils::MakeMaker: 6.42
  HTTP::Request::Common: 0
  Test::More: 0.88
configure_requires:
  ExtUtils::MakeMaker: 6.42
distribution_type: module
generated_by: 'Module::Install version 0.910'

 view all matches for this distribution


Catalyst-TraitFor-Request-QueryFromJSONY

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

author:
  - 'John Napiorkowski <jjnapiork@cpan.org>'
build_requires:
  Catalyst::Test: '0'
  Data::Dumper: '0'
  HTTP::Request::Common: '0'
  Test::Most: '0.34'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 5.039, CPAN::Meta::Converter version 2.150005'

 view all matches for this distribution


Catalyst-TraitFor-Request-StrongParameters

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

abstract: 'methods for your request object to assist in content negotiation'
author:
  - 'John Napiorkowski <jjnapiork@cpan.org>'
build_requires:
  Catalyst::Test: '0'
  HTTP::Request::Common: '0'
  Test::Most: '0.34'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.024, CPAN::Meta::Converter version 2.150010'

 view all matches for this distribution


Catalyst-TraitFor-Request-StructuredParameters

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

abstract: 'Enforce structural rules on your body and data parameters'
author:
  - 'John Napiorkowski <jjnapiork@cpan.org>'
build_requires:
  Catalyst::Test: '0'
  HTTP::Request::Common: '0'
  Test::Most: '0.34'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.024, CPAN::Meta::Converter version 2.150010'

 view all matches for this distribution


Catalyst-TraitFor-Request-XMLHttpRequest

 view release on metacpan or  search on metacpan

t/basic.t  view on Meta::CPAN

use strict;
use warnings;
use Test::More;
use HTTP::Request::Common;

use FindBin;
use lib "$FindBin::Bin/lib";

use Catalyst::Test 'TestApp';

 view all matches for this distribution


Catalyst-View-CSS-Minifier-XS

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Catalyst" : "5.64",
            "Catalyst::Test" : "0",
            "File::Spec" : "0",
            "FindBin" : "0",
            "HTTP::Headers" : "0",
            "HTTP::Request" : "0",
            "Moose" : "0",
            "MooseX::Aliases" : "0",
            "Path::Class::Dir" : "0.17",
            "Test::More" : "0.88",
            "URI" : "0",

 view all matches for this distribution


Catalyst-View-EmbeddedPerl

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

         }
      },
      "test" : {
         "requires" : {
            "Catalyst::Test" : "0",
            "HTTP::Request::Common" : "0",
            "Test::Lib" : "0",
            "Test::Most" : "0.34"
         }
      }
   },

 view all matches for this distribution


( run in 1.844 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )