Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention MOJO_PROXY in ojo documentation
  • Loading branch information
kraih committed Mar 25, 2012
1 parent 052e1b2 commit f2bf2bd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.69 2012-03-25
2.69 2012-03-26
- Changed number of redirects ojo and the get command will follow to 10.
- Improved Mojo::DOM::CSS performance.
- Improved documentation.
Expand Down
17 changes: 11 additions & 6 deletions lib/ojo.pm
Expand Up @@ -85,7 +85,16 @@ ojo - Fun Oneliners with Mojo!
=head1 DESCRIPTION
A collection of automatically exported functions for fun Perl oneliners.
A collection of automatically exported functions for fun Perl oneliners. Ten
redirects will be followed by default, you can change this behavior with the
C<MOJO_MAX_REDIRECTS> environment variable.
$ MOJO_MAX_REDIRECTS=0 perl -Mojo -E 'say g("mojolicio.us")->code'
Proxy detection is disabled by default, but you can enable it with the
C<MOJO_PROXY> environment variable.
$ MOJO_PROXY=1 perl -Mojo -E 'say g("mojolicio.us")->body'
=head1 FUNCTIONS
Expand Down Expand Up @@ -137,11 +146,7 @@ resulting L<Mojo::Message::Response> object.
my $res = g('http://mojolicio.us' => {DNT => 1} => 'Hi!');
Perform C<GET> request with L<Mojo::UserAgent/"get"> and return resulting
L<Mojo::Message::Response> object. Ten redirects will be followed by default,
you can change this behavior with the C<MOJO_MAX_REDIRECTS> environment
variable.
$ MOJO_MAX_REDIRECTS=0 perl -Mojo -E 'say g("mojolicio.us")->code'
L<Mojo::Message::Response> object.
=head2 C<h>
Expand Down

0 comments on commit f2bf2bd

Please sign in to comment.