Skip to content
Browse files

Documentation spelling fixes.

  • Loading branch information...
1 parent 4b6658c commit 512c4fb5926e8b6a602abd8e15e9354eef3b8755 @scop scop committed
Showing with 11 additions and 11 deletions.
  1. +1 −1 lib/HTTP/Headers/Util.pm
  2. +1 −1 lib/HTTP/Message.pm
  3. +3 −3 lib/HTTP/Request/Common.pm
  4. +1 −1 lib/HTTP/Response.pm
  5. +5 −5 lib/HTTP/Status.pm
View
2 lib/HTTP/Headers/Util.pm
@@ -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:
View
2 lib/HTTP/Message.pm
@@ -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
View
6 lib/HTTP/Request/Common.pm
@@ -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',
@@ -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
@@ -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):
View
2 lib/HTTP/Response.pm
@@ -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.
View
10 lib/HTTP/Status.pm
@@ -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
@@ -227,11 +227,11 @@ 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.
@@ -239,7 +239,7 @@ 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.
@@ -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.
Something went wrong with that request. Please try again.