Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added missing form examples
  • Loading branch information
kraih committed Apr 3, 2012
1 parent c6770cc commit 4690065
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Mojo/UserAgent/Transactor.pm
Expand Up @@ -265,12 +265,14 @@ implements the following new ones.
my $tx = $t->form('kraih.com' => {a => 'b'});
my $tx = $t->form('http://kraih.com' => {a => 'b'});
my $tx = $t->form('http://kraih.com' => {a => ['b', 'c', 'd']});
my $tx = $t->form('http://kraih.com' => {mytext => {file => '/foo.txt'}});
my $tx = $t->form('http://kraih.com' => {mytext => {content => 'lalala'}});
my $tx = $t->form('http://kraih.com' => {
myzip => {
file => Mojo::Asset::Memory->new->add_chunk('lalala'),
filename => 'foo.zip'
filename => 'foo.zip',
DNT => 1
}
});
my $tx = $t->form('http://kraih.com' => 'UTF-8' => {a => 'b'});
Expand Down

0 comments on commit 4690065

Please sign in to comment.