Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention the path too
  • Loading branch information
kraih committed Feb 24, 2017
1 parent c74b998 commit 0ede7ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1394,11 +1394,11 @@ C<http+unix://> and C<ws+unix://> schemes, and pass along a percent encoded path
use Mojo::UserAgent;
use Mojo::IOLoop;

# GET request via UNIX domain socket
# GET request via UNIX domain socket "/tmp/myapp.sock"
my $ua = Mojo::UserAgent->new;
say $ua->get('http+unix://%2Ftmp%2Fmyapp.sock/index.html')->result->body;

# WebSocket connection via UNIX domain socket
# WebSocket connection via UNIX domain socket "/tmp/myapp.sock"
$ua->websocket('ws+unix://%2Ftmp%2Fmyapp.sock/echo' => sub {
my ($ua, $tx) = @_;

Expand Down

0 comments on commit 0ede7ae

Please sign in to comment.