Skip to content

Commit

Permalink
more consistent references to encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 29, 2015
1 parent 27a61f7 commit 3b377ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions lib/Mojo/Content.pm
Expand Up @@ -577,11 +577,11 @@ later. You can write an empty chunk of data at any time to end the stream.
$content = $content->write_chunk($bytes);
$content = $content->write_chunk($bytes => sub {...});
Write dynamic content non-blocking with C<chunked> transfer encoding, the
optional drain callback will be invoked once all data has been written. Calling
this method without a chunk of data will finalize the L</"headers"> and allow
for dynamic content to be written later. You can write an empty chunk of data
at any time to end the stream.
Write dynamic content non-blocking with chunked transfer encoding, the optional
drain callback will be invoked once all data has been written. Calling this
method without a chunk of data will finalize the L</"headers"> and allow for
dynamic content to be written later. You can write an empty chunk of data at any
time to end the stream.
# Make sure previous chunk of data has been written before continuing
$content->write_chunk('He' => sub {
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -995,10 +995,10 @@ defaults to C<15> seconds.
$c = $c->write_chunk(sub {...});
$c = $c->write_chunk($bytes => sub {...});
Write dynamic content non-blocking with C<chunked> transfer encoding, the
optional drain callback will be invoked once all data has been written. Calling
this method without a chunk of data will finalize the response headers and
allow for dynamic content to be written later.
Write dynamic content non-blocking with chunked transfer encoding, the optional
drain callback will be invoked once all data has been written. Calling this
method without a chunk of data will finalize the response headers and allow for
dynamic content to be written later.
# Make sure previous chunk has been written before continuing
$c->write_chunk('H' => sub {
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1035,8 +1035,8 @@ L<Mojo::UserAgent> makes it actually easy.
$tx = $ua->start($tx);

The event L<Mojo::Content/"read"> will be emitted for every chunk of data that
is received, even C<chunked> encoding and gzip compression will be handled
transparently if necessary.
is received, even chunked transfer encoding and gzip content encoding will be
handled transparently if necessary.

=head2 Streaming request

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -1258,7 +1258,7 @@ lot more efficient to use L<Mojolicious/"after_render">.
=head2 Chunked transfer encoding

For very dynamic content you might not know the response content length in
advance, that's where the C<chunked> transfer encoding and
advance, that's where the chunked transfer encoding and
L<Mojolicious::Controller/"write_chunk"> come in handy. A common use would be
to send the C<head> section of an HTML document to the browser in advance and
speed up preloading of referenced images and stylesheets.
Expand Down

0 comments on commit 3b377ad

Please sign in to comment.