root/lang/perl/HTTP-Engine/trunk/t/010_core/request-parameters.t
@
17311
| Revision 17311, 355 bytes (checked in by tokuhirom, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | use strict; |
| 2 | use warnings; |
| 3 | use Test::More tests => 1; |
| 4 | use HTTP::Engine::Request; |
| 5 | use HTTP::Engine::RequestBuilder; |
| 6 | |
| 7 | my $req = HTTP::Engine::Request->new( |
| 8 | request_builder => HTTP::Engine::RequestBuilder->new, |
| 9 | ); |
| 10 | $req->http_body->param(foo => 'bar'); |
| 11 | $req->query_parameters({bar => 'baz'}); |
| 12 | is_deeply $req->parameters(), {foo => 'bar', 'bar' => 'baz'}; |
| 13 |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)