Skip to content

Commit

Permalink
clarified it's not a hash ref
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Sep 7, 2009
1 parent 3ac8e79 commit 79b722f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions PSGI.pod
Expand Up @@ -246,13 +246,14 @@ HTTP status code, is an integer and MUST be greater than or equal to 100.


=head4 Headers =head4 Headers


The headers must be an array reference containing key and value pairs. The headers must be an array reference (and NOT a hash reference!)
Its number of elements MUST be even. The header MUST NOT contain a containing key and value pairs. Its number of elements MUST be
C<Status> key, contain keys with C<:> or newlines in their name, even. The header MUST NOT contain a C<Status> key, contain keys with
contain keys that end in C<-> or C<_> but only contain keys that C<:> or newlines in their name, contain keys that end in C<-> or C<_>
consist of letters, digits, C<_> or C<-> and start with a letter. The but only contain keys that consist of letters, digits, C<_> or C<->
value of the header must be a scalar value that contain a string. The and start with a letter. The value of the header must be a scalar
value string MUST NOT contain characters below chr(37). value that contain a string. The value string MUST NOT contain
characters below chr(37).


If the same key name appears multiple times in an array ref, those If the same key name appears multiple times in an array ref, those
header lines MUST be sent to the client separately (e.g. multiple header lines MUST be sent to the client separately (e.g. multiple
Expand Down

0 comments on commit 79b722f

Please sign in to comment.