NAME

POEx::Types::PSGIServer - (DEPRECATED) Provides type constraints for use in POEx::Role::PSGIServer

VERSION

version 1.150280

TYPES

PSGIServerContext

PSGIServerContext is defined as a Hash with the following keys:

request => HTTPRequest,
wheel => Optional[Wheel],
version => Str,
protocol => Str, 
connection => Str,
keep_alive => Bool,
chunked => Optional[Bool],
explicit_length => Optional[Bool],

The context is passed around to identify the current connection and what it is expecting

HTTPRequest

This is a simple class_type for HTTP::Request

HTTPCode

This constraint uses HTTP::Status to check if the Int is a valid HTTP::Status code

PSGIBody

The PSGIBody constraint covers two of the three types of body responses valid for PGSI responses: a real filehandle or a blessed reference that duck-types getline and close

PSGIResponse

This constraint checks responses from PSGI applications for a valid HTTPCode, an ArrayRef of headers, and the Optional PSGIBody or ArrayRef body

AUTHOR

Nicholas Perez <nperez@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.