Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added Mojo::DOM parsing example with charset and hint for tuning Hypn…
…otoad
  • Loading branch information
kraih committed Mar 18, 2012
1 parent a652733 commit d8b5ac9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Mojo/DOM.pm
Expand Up @@ -596,6 +596,9 @@ Parent of element.
Alias for L<Mojo::DOM::HTML/"parse">.
# Parse UTF-8 encoded XML
my $dom = Mojo::DOM->new->charset('UTF-8')->xml(1)->parse($xml);
=head2 C<prepend>
$dom = $dom->prepend('<p>Hi!</p>');
Expand Down
4 changes: 3 additions & 1 deletion lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -509,7 +509,9 @@ Listen backlog size, defaults to C<SOMAXCONN>.
clients => 100
Maximum number of parallel client connections per worker process, defaults to
C<1000>.
C<1000>. Note that depending on how much your application may block, you
might want to decrease this value and increase C<workers> instead for better
performance.
=head2 C<graceful_timeout>
Expand Down

0 comments on commit d8b5ac9

Please sign in to comment.