Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
a few more controller examples
  • Loading branch information
kraih committed Jun 30, 2013
1 parent d522f38 commit 1755e65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

4.17 2013-06-30
4.17 2013-07-01
- Fixed Mojo::Transaction::WebSocket to generate RFC 6455 compliant
Sec-WebSocket-Key headers. (josh)

Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -727,7 +727,9 @@ Get L<Mojo::Message::Request> object from L<Mojo::Transaction/"req">.
my $host = $c->req->url->to_abs->host;
my $agent = $c->req->headers->user_agent;
my $body = $c->req->body;
my $hash = $c->req->json;
my $foo = $c->req->json('/23/foo');
my $dom = $c->req->dom;
my $bar = $c->req->dom('div.bar')->first->text;
=head2 res
Expand Down

0 comments on commit 1755e65

Please sign in to comment.