Skip to content

Commit

Permalink
Documentation spelling fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jul 26, 2011
1 parent 4b6658c commit 512c4fb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/HTTP/Headers/Util.pm
Expand Up @@ -153,7 +153,7 @@ the requirement for tokens).
Each I<header> is represented by an anonymous array of key/value
pairs. The keys will be all be forced to lower case.
The value for a simple token (not part of a parameter) is C<undef>.
Syntactically incorrect headers will not necessary be parsed as you
Syntactically incorrect headers will not necessarily be parsed as you
would want.
This is easier to describe with some examples:
Expand Down
2 changes: 1 addition & 1 deletion lib/HTTP/Message.pm
Expand Up @@ -981,7 +981,7 @@ one part returned.
If the content type is C<message/http>, then the return value will be
either an C<HTTP::Request> or an C<HTTP::Response> object.
If an @parts argument is given, then the content of the message will be
If a @parts argument is given, then the content of the message will be
modified. The array reference form is provided so that an empty list
can be provided. The @parts array should contain C<HTTP::Message>
objects. The @parts objects are owned by $mess after this call and
Expand Down
6 changes: 3 additions & 3 deletions lib/HTTP/Request/Common.pm
Expand Up @@ -389,7 +389,7 @@ the $form_ref this way.
The $form_ref argument can be used to pass key/value pairs for the
form content. By default we will initialize a request using the
C<application/x-www-form-urlencoded> content type. This means that
you can emulate a HTML E<lt>form> POSTing like this:
you can emulate an HTML E<lt>form> POSTing like this:
POST 'http://www.perl.org/survey.cgi',
[ name => 'Gisle Aas',
Expand All @@ -399,7 +399,7 @@ you can emulate a HTML E<lt>form> POSTing like this:
perc => '3%',
];
This will create a HTTP::Request object that looks like this:
This will create an HTTP::Request object that looks like this:
POST http://www.perl.org/survey.cgi
Content-Length: 66
Expand Down Expand Up @@ -445,7 +445,7 @@ achieved by this:
init => ["$ENV{HOME}/.profile"],
]
This will create a HTTP::Request object that almost looks this (the
This will create an HTTP::Request object that almost looks this (the
boundary and the content of your F<~/.profile> is likely to be
different):
Expand Down
2 changes: 1 addition & 1 deletion lib/HTTP/Response.pm
Expand Up @@ -392,7 +392,7 @@ This constructs a new response object by parsing the given string.
=item $r->code( $code )
This is used to get/set the code attribute. The code is a 3 digit
number that encode the overall outcome of a HTTP response. The
number that encode the overall outcome of an HTTP response. The
C<HTTP::Status> module provide constants that provide mnemonic names
for the code attribute.
Expand Down
10 changes: 5 additions & 5 deletions lib/HTTP/Status.pm
Expand Up @@ -128,7 +128,7 @@ HTTP::Status - HTTP Status code processing
I<HTTP::Status> is a library of routines for defining and
classifying HTTP status codes for libwww-perl. Status codes are
used to encode the overall outcome of a HTTP response message. Codes
used to encode the overall outcome of an HTTP response message. Codes
correspond to those defined in RFC 2616 and RFC 2518.
=head1 CONSTANTS
Expand Down Expand Up @@ -227,19 +227,19 @@ user agent in order to fulfill the request.
=item is_error( $code )
Return TRUE if C<$code> is an I<Error> status code (4xx or 5xx). The function
return TRUE for both client error or a server error status codes.
returns TRUE for both client and server error status codes.
=item is_client_error( $code )
Return TRUE if C<$code> is an I<Client Error> status code (4xx). This class
Return TRUE if C<$code> is a I<Client Error> status code (4xx). This class
of status code is intended for cases in which the client seems to have
erred.
This function is B<not> exported by default.
=item is_server_error( $code )
Return TRUE if C<$code> is an I<Server Error> status code (5xx). This class
Return TRUE if C<$code> is a I<Server Error> status code (5xx). This class
of status codes is intended for cases in which the server is aware
that it has erred or is incapable of performing the request.
Expand All @@ -250,5 +250,5 @@ This function is B<not> exported by default.
=head1 BUGS
For legacy reasons all the C<HTTP_> constants are exported by default
with the prefix C<RC_>. It's recommended to use explict imports and
with the prefix C<RC_>. It's recommended to use explicit imports and
the C<:constants> tag instead of relying on this.

0 comments on commit 512c4fb

Please sign in to comment.