Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add a lot of warnings
  • Loading branch information
kraih committed May 16, 2015
1 parent 04c12ef commit 006f7b8
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
8 changes: 5 additions & 3 deletions lib/Mojo/Content.pm
Expand Up @@ -487,19 +487,21 @@ overloaded in a subclass.
my $bytes = $content->get_header_chunk(13);
Get a chunk of the headers starting from a specific position.
Get a chunk of the headers starting from a specific position. Note that this
method finalizes the content.
=head2 header_size
my $size = $content->header_size;
Size of headers in bytes.
Size of headers in bytes. Note that this method finalizes the content.
=head2 headers_contain
my $bool = $content->headers_contain('foo bar baz');
Check if headers contain a specific string.
Check if headers contain a specific string. Note that this method finalizes the
content.
=head2 is_chunked
Expand Down
4 changes: 3 additions & 1 deletion lib/Mojo/Content/MultiPart.pm
Expand Up @@ -278,7 +278,9 @@ Clone content if possible, otherwise return C<undef>.
my $bytes = $multi->get_body_chunk(0);
Get a chunk of content starting from a specific position.
Get a chunk of content starting from a specific position. Note that it might
not be possible to get the same chunk twice if content was generated
dynamically.
=head2 is_multipart
Expand Down
4 changes: 3 additions & 1 deletion lib/Mojo/Content/Single.pm
Expand Up @@ -141,7 +141,9 @@ Clone content if possible, otherwise return C<undef>.
my $bytes = $single->get_body_chunk(0);
Get a chunk of content starting from a specific position.
Get a chunk of content starting from a specific position. Note that it might
not be possible to get the same chunk twice if content was generated
dynamically.
=head2 new
Expand Down
13 changes: 9 additions & 4 deletions lib/Mojo/Message.pm
Expand Up @@ -550,13 +550,16 @@ Make sure message has all required headers.
my $bytes = $msg->get_body_chunk($offset);
Get a chunk of body data starting from a specific position.
Get a chunk of body data starting from a specific position. Note that it might
not be possible to get the same chunk twice if content was generated
dynamically.
=head2 get_header_chunk
my $bytes = $msg->get_header_chunk($offset);
Get a chunk of header data, starting from a specific position.
Get a chunk of header data, starting from a specific position. Note that this
method finalizes the message.
=head2 get_start_line_chunk
Expand All @@ -569,7 +572,7 @@ overloaded in a subclass.
my $size = $msg->header_size;
Size of headers in bytes.
Size of headers in bytes. Note that this method finalizes the message.
=head2 headers
Expand Down Expand Up @@ -633,7 +636,9 @@ L</"default_charset">.
my $str = $msg->to_string;
Render whole message.
Render whole message. Note that this method finalizes the message, and that it
might not be possible to render the same message twice if content was generated
dynamically.
=head2 upload
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojo/Message/Request.pm
Expand Up @@ -382,7 +382,8 @@ Make sure request has all required headers.
my $bytes = $req->get_start_line_chunk($offset);
Get a chunk of request-line data starting from a specific position.
Get a chunk of request-line data starting from a specific position. Note that
this method finalizes the request.
=head2 is_handshake
Expand Down Expand Up @@ -462,7 +463,7 @@ All C<GET> parameters, usually a L<Mojo::Parameters> object.
my $size = $req->start_line_size;
Size of the request-line in bytes.
Size of the request-line in bytes. Note that this method finalizes the request.
=head1 SEE ALSO
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojo/Message/Response.pm
Expand Up @@ -244,7 +244,8 @@ Make sure response has all required headers.
my $bytes = $res->get_start_line_chunk($offset);
Get a chunk of status-line data starting from a specific position.
Get a chunk of status-line data starting from a specific position. Note that
this method finalizes the response.
=head2 is_empty
Expand All @@ -262,7 +263,7 @@ Check response status class.
my $size = $req->start_line_size;
Size of the status-line in bytes.
Size of the status-line in bytes. Note that this method finalizes the response.
=head1 SEE ALSO
Expand Down

0 comments on commit 006f7b8

Please sign in to comment.