Skip to content

Commit

Permalink
Merge pull request #2168 from Yenya/main
Browse files Browse the repository at this point in the history
Cookbook: POST instead of GET in streaming example
  • Loading branch information
mergify[bot] authored Mar 20, 2024
2 parents 0da4a70 + 195f1ff commit aa96f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ Sending a streaming request is almost just as easy.

# Build a normal transaction
my $ua = Mojo::UserAgent->new;
my $tx = $ua->build_tx(GET => 'http://example.com');
my $tx = $ua->build_tx(POST => 'http://example.com');

# Prepare body
my $body = 'Hello World!';
Expand Down

0 comments on commit aa96f58

Please sign in to comment.